-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1962 from PolicyEngine/fix/1959-remove-chunking
Fully remove chunking changes
- Loading branch information
Showing
11 changed files
with
47 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- bump: minor | ||
changes: | ||
removed: | ||
- Code associated with chunking | ||
- Code associated with separating baseline and reform calculations | ||
- Old todo comments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# Environment variables | ||
export PORT=${PORT:-8080} | ||
export WORKER_COUNT=${WORKER_COUNT:-3} | ||
export REDIS_PORT=${REDIS_PORT:-6379} | ||
|
||
# Start the API | ||
gunicorn -b :$PORT policyengine_api.api --timeout 300 --workers 5 & | ||
# Start the redis server | ||
redis-server & | ||
# Start the worker | ||
python3 policyengine_api/worker.py & | ||
python3 policyengine_api/worker.py & | ||
python3 policyengine_api/worker.py & | ||
python3 policyengine_api/worker.py & | ||
python3 policyengine_api/worker.py | ||
|
||
# Start Redis with configuration for multiple clients | ||
redis-server --protected-mode no \ | ||
--maxclients 10000 \ | ||
--timeout 0 & | ||
|
||
# Wait for Redis to be ready | ||
sleep 2 | ||
|
||
# Start multiple workers | ||
for (( i=1; i<=$WORKER_COUNT; i++ )) | ||
do | ||
echo "Starting worker $i..." | ||
python3 policyengine_api/worker.py & | ||
done | ||
|
||
# Keep the script running and handle shutdown gracefully | ||
trap "pkill -P $$; exit 1" SIGINT SIGTERM | ||
wait |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters