-
Notifications
You must be signed in to change notification settings - Fork 21
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
Changing entry node -> organic node && entry node -> synthetic node, with render deployment compatibility #188
Open
MahdiPresario001
wants to merge
101
commits into
rayonlabs:production
Choose a base branch
from
MahdiPresario001:feature/hybrid-node
base: production
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
101 commits
Select commit
Hold shift + click to select a range
36affec
changes for synthetic node
MahdiPresario001 aae8ee2
more changes
MahdiPresario001 1224991
change text endpoints
MahdiPresario001 c2029f5
more changes
MahdiPresario001 0366005
more changes
MahdiPresario001 049dbcb
adapt docker compose, taskfile, etc
MahdiPresario001 2f7bba0
debug
MahdiPresario001 07e3d30
dbeug
MahdiPresario001 37c2941
debug
MahdiPresario001 5c5bdf9
debug
MahdiPresario001 45bba53
debug
MahdiPresario001 4aa7501
sync with prod
MahdiPresario001 605da88
debug _decrement_requests_remaining
MahdiPresario001 8fe828e
logs for debugging
MahdiPresario001 290785b
logs for debugging
MahdiPresario001 cb88a68
add key for testing
MahdiPresario001 d2c5f2d
debug
MahdiPresario001 06f0ed9
we need keypair in organic node too
MahdiPresario001 588dd92
we need keypair in organic node too
MahdiPresario001 5be8564
debug
MahdiPresario001 a8c4d71
changes for nginx
MahdiPresario001 8cfedaf
score organics too - text
MahdiPresario001 3af783e
adding nginx stuff
MahdiPresario001 74871a7
change var name
MahdiPresario001 e069192
debug
MahdiPresario001 d6ff4dc
debug
MahdiPresario001 d59e53f
chmod +x
MahdiPresario001 e7a2cd2
debug nginx
MahdiPresario001 e476436
debug
MahdiPresario001 52167ed
debugging scoring for organic
MahdiPresario001 a5d82e7
debug
MahdiPresario001 9925cdf
debug
MahdiPresario001 0ceaee7
debug
MahdiPresario001 a43e6c4
debug
MahdiPresario001 a64a0ad
debug
MahdiPresario001 cdb1304
debug
MahdiPresario001 67ba9c8
debug
MahdiPresario001 a9d3216
debug: nginx only seeing two organic nodes
MahdiPresario001 fdb467f
debug: nginx only seeing two organic nodes
MahdiPresario001 a33ce87
debug: nginx only seeing two organic nodes
MahdiPresario001 6d5973f
debug: nginx only seeing two organic nodes
MahdiPresario001 43e5e99
remove nginx
MahdiPresario001 a0ef47f
lil tweak
MahdiPresario001 2975713
remove loadbalancing network
MahdiPresario001 96470f6
fix
MahdiPresario001 f1e1f45
remove healthckecks for organic node
MahdiPresario001 47874a5
test 2 organic nodes
MahdiPresario001 2bd6d6a
debug
MahdiPresario001 0e75434
roll back to 1 organic node
MahdiPresario001 48a000d
expose psql db for render
MahdiPresario001 d15a5a0
debug
MahdiPresario001 5e4566f
sync with prod
MahdiPresario001 7725a81
add WALLET_SECRET_SEED env var
MahdiPresario001 29e4cf7
add WALLET_SECRET_SEED env var
MahdiPresario001 20e5f48
expose redis ports
MahdiPresario001 e88dee2
debug
MahdiPresario001 d9decd4
changes for psql / redis cnx issues
MahdiPresario001 02d52dd
change psql pool cnx config
MahdiPresario001 c908244
do not expose redis/psql
MahdiPresario001 81c8020
changes for rayon vali
MahdiPresario001 9d1d609
roll back, handle observability later
MahdiPresario001 6a576c7
lil tweak
MahdiPresario001 575f9ff
lil tweak
MahdiPresario001 496e21b
debug
MahdiPresario001 8768bb1
debug
MahdiPresario001 b5852eb
debug
MahdiPresario001 4edcaea
debug
MahdiPresario001 8160de9
Merge pull request #8 from MahdiPresario001/feature/rayon-vali-change…
MahdiPresario001 de35c3e
tweaks
MahdiPresario001 ee54d55
fix organic node logs
MahdiPresario001 5416e70
expose otel collector
MahdiPresario001 5f2a0ca
debug
MahdiPresario001 f6d0b29
debug
MahdiPresario001 8047572
debug
MahdiPresario001 d0a218a
debug
MahdiPresario001 6b90786
debug
MahdiPresario001 5b87ccd
debug
MahdiPresario001 8028595
debug
MahdiPresario001 0262e92
testing fifo for text contenders
MahdiPresario001 f5a85db
try without a func
MahdiPresario001 910b7aa
debug
MahdiPresario001 e2d641d
add update_total_requests_made
MahdiPresario001 8aa3f7a
update psql pool params
MahdiPresario001 23b7c18
increase psql cnx pool min/max
MahdiPresario001 d9818fc
debug
MahdiPresario001 7786fbf
modifying args for redis pool
MahdiPresario001 b231ee8
modifying args for redis pool
MahdiPresario001 c3a0eaa
new contender selection for organic
MahdiPresario001 af50719
roll back contenders selection
MahdiPresario001 c39cf4d
ssl disable for local dbmate
MahdiPresario001 f3d4226
test smtg out
MahdiPresario001 a19c193
roll back for the night
MahdiPresario001 590901d
few changes for redis on control node / synth node to better handle c…
MahdiPresario001 8407393
sync with prod
MahdiPresario001 59df4aa
clean
MahdiPresario001 6c02d73
update response format for text comp non stream
MahdiPresario001 b253de6
debug
MahdiPresario001 dad8181
add index in non streamin chat too
MahdiPresario001 bb5918a
first chunk then stream
MahdiPresario001 0f1d414
updates to synth node
MahdiPresario001 4dc3177
lil tweak for synth node
MahdiPresario001 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -16,13 +16,13 @@ tasks: | |
cmds: | ||
- LOCALHOST=true ENV_FILE=.vali.env python -m validator.control_node.src.main | ||
|
||
query_node_dev: | ||
synthetic_node_dev: | ||
cmds: | ||
- LOCALHOST=true ENV_FILE=.vali.env python -m validator.query_node.src.main | ||
- LOCALHOST=true ENV_FILE=.vali.env python -m validator.synthetic_node.src.main | ||
|
||
entry_node_dev: | ||
organic_node_dev: | ||
cmds: | ||
- LOCALHOST=true uvicorn validator.entry_node.src.server:app --reload --host 0.0.0.0 --port 8090 --env-file .vali.env | ||
- LOCALHOST=true uvicorn validator.organic_node.src.server:app --reload --host 0.0.0.0 --port 8090 --env-file .vali.env | ||
|
||
weight_setter_dev: | ||
cmds: | ||
|
@@ -35,10 +35,10 @@ tasks: | |
- " | ||
docker compose | ||
--env-file .vali.env | ||
--profile entry_node_profile | ||
--profile organic_node_profile | ||
up -d --build | ||
--scale entry_node=0 | ||
--scale query_node=0 | ||
--scale organic_node=0 | ||
--scale synthetic_node=0 | ||
--scale control_node=0 | ||
--scale weight_setter=0 | ||
--scale redis-proxy=1 | ||
|
@@ -59,32 +59,32 @@ tasks: | |
update_docker_fiber_version: | ||
cmds: | ||
- docker run --rm nineteen-control_node sh -c "pip install git+https://github.com/rayonlabs/[email protected] --upgrade" | ||
- docker run --rm nineteen-entry_node sh -c "pip install git+https://github.com/rayonlabs/[email protected] --upgrade" | ||
- docker run --rm nineteen-query_node sh -c "pip install git+https://github.com/rayonlabs/[email protected] --upgrade" | ||
- docker run --rm nineteen-organic_node sh -c "pip install git+https://github.com/rayonlabs/[email protected] --upgrade" | ||
- docker run --rm nineteen-synthetic_node sh -c "pip install git+https://github.com/rayonlabs/[email protected] --upgrade" | ||
|
||
createm: | ||
cmds: | ||
- bash start_miners.sh | ||
|
||
startup: | ||
cmds: | ||
- docker compose --env-file .vali.env --profile entry_node_profile up -d --build | ||
- docker compose --env-file .vali.env --profile organic_node_profile up -d --build | ||
|
||
shutdown: | ||
cmds: | ||
- docker compose --env-file .vali.env --profile entry_node_profile down --remove-orphans | ||
- docker compose --env-file .vali.env --profile organic_node_profile down --remove-orphans | ||
|
||
shutdown_and_delete: | ||
cmds: | ||
- docker compose --env-file .vali.env --profile entry_node_profile down --remove-orphans -v | ||
- docker compose --env-file .vali.env --profile organic_node_profile down --remove-orphans -v | ||
|
||
postgres: | ||
cmds: | ||
- docker compose --env-file .vali.env --profile entry_node_profile exec -it postgresql psql -U$POSTGRES_USER $POSTGRES_DB | ||
- docker compose --env-file .vali.env --profile organic_node_profile exec -it postgresql psql -U$POSTGRES_USER $POSTGRES_DB | ||
|
||
redis: | ||
cmds: | ||
- docker compose --env-file .vali.env --profile entry_node_profile exec -it redis redis-cli | ||
- docker compose --env-file .vali.env --profile organic_node_profile exec -it redis redis-cli | ||
|
||
expose-postgres: | ||
cmds: | ||
|
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 |
---|---|---|
|
@@ -29,22 +29,23 @@ ARG BREAK_CACHE_ARG=0 | |
RUN pip install --no-cache-dir "fiber[full] @ git+https://github.com/rayonlabs/[email protected]" | ||
################################################################################ | ||
|
||
FROM core AS entry_node | ||
FROM core AS organic_node | ||
|
||
WORKDIR /app/validator/entry_node | ||
WORKDIR /app/validator/organic_node | ||
|
||
COPY validator/entry_node/requirements.txt . | ||
COPY validator/organic_node/requirements.txt . | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY core /app/core | ||
COPY validator/utils /app/validator/utils | ||
COPY validator/models.py /app/validator/models.py | ||
COPY validator/db /app/validator/db | ||
|
||
COPY validator/entry_node/src ./src | ||
COPY validator/entry_node/pyproject.toml . | ||
COPY validator/organic_node/src ./src | ||
COPY validator/common /app/validator/common | ||
COPY validator/organic_node/pyproject.toml . | ||
|
||
|
||
ENV PYTHONPATH="${PYTHONPATH}:/app/validator/entry_node/src" | ||
ENV PYTHONPATH="${PYTHONPATH}:/app/validator/organic_node/src" | ||
|
||
# CMD ["tail", "-f", "/dev/null"] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why exactly is this required just to confirm? to connect organic node running outside docker network?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah for organic nodes on render (redis too)