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

Added multiple api servers in compose file. nginx load balancing #81

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

radiantone
Copy link

Just issuing a PR so you can see what I did here. If you feel it's useful to have in main branch, then feel free to merge. If not, then decline it.

@radiantone radiantone requested a review from masalim2 October 18, 2021 12:45
@radiantone
Copy link
Author

radiantone commented Oct 22, 2021

Yes, I updated the config

  limit_req_zone $http_authorization_key zone=one:10m rate=40r/m;
  limit_conn_zone $http_authorization_key zone=addr:10m;

where $http_authorization_key = 'Authorization-Key' request header field

@radiantone radiantone linked an issue Oct 30, 2021 that may be closed by this pull request
@codecov-commenter
Copy link

codecov-commenter commented Oct 30, 2021

Codecov Report

Merging #81 (88e6022) into main (d9bfd64) will increase coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #81      +/-   ##
==========================================
+ Coverage   65.25%   65.30%   +0.04%     
==========================================
  Files         146      150       +4     
  Lines        9021     9134     +113     
  Branches     1114     1135      +21     
==========================================
+ Hits         5887     5965      +78     
- Misses       2856     2886      +30     
- Partials      278      283       +5     
Impacted Files Coverage Δ
balsam/server/routers/jobs.py 86.56% <0.00%> (-6.86%) ⬇️
balsam/schemas/session.py 93.75% <0.00%> (-6.25%) ⬇️
balsam/server/utils/paginator.py 94.44% <0.00%> (-5.56%) ⬇️
balsam/server/models/crud/transfers.py 72.22% <0.00%> (-3.19%) ⬇️
balsam/server/models/crud/sessions.py 92.17% <0.00%> (-2.38%) ⬇️
balsam/_api/manager.py 83.43% <0.00%> (-0.29%) ⬇️
balsam/server/routers/filters.py 87.09% <0.00%> (-0.23%) ⬇️
balsam/_api/models.py 94.57% <0.00%> (-0.12%) ⬇️
balsam/schemas/job.py 87.41% <0.00%> (-0.09%) ⬇️
balsam/site/job_source.py 92.24% <0.00%> (ø)
... and 19 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d9bfd64...88e6022. Read the comment docs.

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

Successfully merging this pull request may close these issues.

Update docker-compose to use profiles to separate deployment services
3 participants