-
Notifications
You must be signed in to change notification settings - Fork 4
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 #7 from TranslatorSRI/fix_memory_usage
Fix memory usage
- Loading branch information
Showing
11 changed files
with
101 additions
and
62 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
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,3 @@ | ||
FROM redis | ||
COPY redis.conf /usr/local/etc/redis/redis.conf | ||
CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ] |
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,22 @@ | ||
requirepass supersecretpassword | ||
port 6380 | ||
maxmemory 20gb | ||
# evict least frequently used keys when memory cap is hit | ||
maxmemory-policy volatile-lfu | ||
loglevel notice | ||
# If we want to log to a file | ||
logfile /data/answer_appraiser_cache.log | ||
save 3600 1 | ||
stop-writes-on-bgsave-error no | ||
dbfilename answer_appraiser_cache.rdb | ||
|
||
# enable larger entry writes | ||
proto-max-bulk-len 1000mb | ||
|
||
# clean up any memory leaks | ||
activedefrag yes | ||
|
||
# only allow connections a certain percentage of total memory | ||
# maxmemory-clients 10% | ||
# close idle clients after 60 seconds | ||
timeout 60 |
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,3 +1,4 @@ | ||
fakeredis==2.17.0 | ||
pytest==6.2.2 | ||
pytest-cov==2.11.1 | ||
requests==2.25.1 |
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,4 +1,7 @@ | ||
fastapi==0.75.0 | ||
gunicorn==20.1.0 | ||
httpx==0.24.1 | ||
numpy==1.25.1 | ||
reasoner-pydantic==4.0.8 | ||
tqdm==4.65.0 | ||
uvicorn==0.13.3 |
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