Credit-module Control Task

Purpose

        To demonstrate the skills of HTTP service vertical scaling.

Requirements

Step I. Configure nginx server as a load balancer for three ip addresses.

Step II. Prepare a bash scriptA that:

  • Launches a container with HTTP server from PA#5 named srv1 on CPU core#0.
  • If the container srv1 remains busy for 2 consecutive minutes scriptA launches srv2 on CPU core#1. The same logic for srv2 and srv3 pair.
  • If the container srv3 is running and stays idle for 2 consecutive minutes then signal the container to exit. The same logic for srv2.
  • When the new version of the container becomes available from docker hub then update three containers srv1, srv2 and srv3 if running. It is up to you to suggest when exactly to update. Make sure at least one container is available when updating the rest.

Step III. Prepare a bash scriptB that asynchronously makes HTTP requests to a server every random 5 to 10 seconds. (hint: use bash & operator).

Presentation

  • Submit a link to github repo and a video demonstrating the setup in action through this form.

Assessment

10 points maximum 





Comments

Popular posts from this blog

PA #5

PA#1