Skip to content

sidsd7/ServerLordWeek1_Siddhi_231IT072

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ServerLordWeek1

Explanation

  • I have created a Dockerfile that sets up a python 3.9 environment, installs dependencies from requirements.txt, exposes the main.py file on port 5050, and runs this main.py file in the /app directory.
  • The nginx.config file configures nginx as a reverse proxy with load balancing, forwarding requests to the instances of the Flask app.
  • The docker-compose.yml file defines two services (flask application and nginx reverse proxy) with port mapping and dependencies. It sets up a shared network (app-network) between the two services.
  • By default round robin algorithm is used for laod balancing the multiple instances of the Flask app, for fair distribution.

Demonstration

Screenshot 2024-11-03 171516 Screenshot 2024-11-03 171151 Screenshot 2024-11-03 172455 Screenshot 2024-11-03 172524 Screenshot 2024-11-03 172600

Best algorithm for cron job manager application

I believe that for a multi tenant SaaS like the cron job manager, the weighted round robin algorithm would best suit it's needs. This is because the higher priority jobs will be served more frequently. So this ensures the fair utilization of resources while keeping in mind the priorities.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 76.8%
  • Dockerfile 23.2%