Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controlador MTD #35

Open
marcosrmartin opened this issue Oct 29, 2023 · 0 comments
Open

Controlador MTD #35

marcosrmartin opened this issue Oct 29, 2023 · 0 comments

Comments

@marcosrmartin
Copy link
Owner

marcosrmartin commented Oct 29, 2023

Para llevar a cabo #12 se necesitará un módulo, que, según https://www.proquest.com/docview/2676586037, deberá:
"The MTD controller is responsible for forwarding traffic from port 80 to a local port that
maps to a container. Each container hosts an isolated web server. The MTD controller uses
firewalld to switch between containers. This layer is persistent in the architecture and enforces
the policy rules. For example, this controller will create a new policy to redirect traffic from port
80 to the new active container when a web server swap is triggered. It then chooses the next live
web server and forwards the information to the port controller."

This was referenced Jun 2, 2024
marcosrmartin added a commit that referenced this issue Jun 2, 2024
Se implementa el controlador y se cambia la estructura de dependencias original. Mientras que en el original, la dependencia de controladores es MTD -> Port -> Container, aqui se cambia para que el MTD maneje directamente las otras dos.
Se ha decidido esto por que el controlador de puertos no necesita ninguna funcionalidad del container. La unica funcionalidad entre ambas clases con ambigüedad es cambiar el servidor ya que se tiene que "sincronizar", pero se podría haber implementado Container -> Port.

Además control del tiempo se mueve del port controller al MTD controller, ya que  no debería tener funcionalidades no relacionadas con los puertos.
This was referenced Jun 2, 2024
marcosrmartin added a commit that referenced this issue Jun 29, 2024
…ica para cerrar el MTD #35

La logica ha sido modificada ya que no cerraba correctamente los contenedores con el destructor
marcosrmartin added a commit that referenced this issue Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant