-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to Py KVStore (from Redis) (#33)
* Migrates away from redis into build in KV Cache * rm openapi yml * Add Debug, only use hset if args > 0 for search & block (cosmos.directory fix) * version bump * Final fixes * bump requirements * migration steps for v0.0.9 * RPC debug * v0.0.9 hopefully final * minor fix to akash deploy
- Loading branch information
1 parent
9583580
commit c9cf163
Showing
22 changed files
with
197 additions
and
55,968 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,4 @@ | |
|
||
/.env | ||
/cache_times.json | ||
/redis.json | ||
/README.md |
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
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
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,43 @@ | ||
# v0.0.8 -> v0.0.9 | ||
|
||
This upgrade brings a new .env file & removes the redis dependency. Please modify your .env file to take effect. | ||
|
||
```sh | ||
# Install the latest dependenies. | ||
python3 -m pip install -r requirements/requirements.txt --upgrade | ||
``` | ||
|
||
## Config Changes | ||
|
||
```toml | ||
# Remove | ||
REDIS_URL=... | ||
REDIS_RPC_PREFIX=... | ||
REDIS_REST_PREFIX=... | ||
|
||
# Add | ||
DEBUGGING=false | ||
# Saves to a file in this dir on close / open for the KV values. | ||
# Set this to any unique name | ||
STORE_NAME="reeces_juno-1" | ||
``` | ||
|
||
## The same goes for akash / compose image env files if you use. | ||
|
||
--- | ||
|
||
## (Docker) Worker Threads | ||
|
||
You can now set the number of threads you want in docker. Useful for akash deployments with multiple cores. | ||
|
||
by default, only 1 thread is used. To expand, more threads, use the following | ||
|
||
```env | ||
RPC_WORKER_THREADS=2 | ||
and | ||
REST_WORKER_THREADS=2 | ||
``` | ||
|
||
Where "2" launches 2 threads for each process with its cache |
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,4 @@ | ||
VERSION=0.0.8 | ||
VERSION=0.0.9 | ||
|
||
run: | ||
docker-compose up | ||
|
Oops, something went wrong.