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

Fixed ENV variable naming typo #9

Merged
merged 2 commits into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ jobs:

- name: Run PING command
run: |
docker-compose exec -T master-node bash -c "/opt/redislabs/bin/redis-cli -p ${{ env.DB_PORT }} ping"
docker-compose exec -T master-node bash -c "/opt/redislabs/bin/redis-cli -p ${{ env.RE_DB_PORT }} ping"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export $(cat .env.credentials | xargs)

### Build RE cluster ###
By default, RE cluster supports single endpoint and relies on DMC proxy to calculate hash slot.
Multiple endpoints (OSS cluster mode) could be enabled by setting env variable `RE_USE_RE_USE_OSS_CLUSTER=true`.
Multiple endpoints (OSS cluster mode) could be enabled by setting env variable `RE_USE_OSS_CLUSTER=true`.

All standard RE ports available from your local network:

Expand Down
2 changes: 1 addition & 1 deletion create_db.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

curl -u $RE_USERNAME:$RE_PASS -H "Content-type: application/json" \
-d '{"name": "db", "port": '$RE_DB_PORT', "memory_size": 1273741824, "replication": false, "eviction_policy": "volatile-lru", "sharding": true, "shards_count": 3, "module_list": [{"module_args": "", "module_name": "ReJSON"},{"module_args": "", "module_name": "search"},{"module_args": "", "module_name": "timeseries"},{"module_args": "", "module_name": "bf"}], "oss_cluster": '$RE_USE_RE_USE_OSS_CLUSTER', "proxy_policy": "all-nodes", "shards_placement": "sparse", "shard_key_regex": [{"regex": ".*\\{(?<tag>.*)\\}.*"},{"regex": "(?<tag>.*)"}]}' \
-d '{"name": "db", "port": '$RE_DB_PORT', "memory_size": 1273741824, "replication": false, "eviction_policy": "volatile-lru", "sharding": true, "shards_count": 3, "module_list": [{"module_args": "", "module_name": "ReJSON"},{"module_args": "", "module_name": "search"},{"module_args": "", "module_name": "timeseries"},{"module_args": "", "module_name": "bf"}], "oss_cluster": '$RE_USE_OSS_CLUSTER', "proxy_policy": "all-nodes", "shards_placement": "sparse", "shard_key_regex": [{"regex": ".*\\{(?<tag>.*)\\}.*"},{"regex": "(?<tag>.*)"}]}' \
-k -X POST https://localhost:9443/v1/bdbs
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
- RE_PASS=${RE_PASS}
- RE_CLUSTER_NAME=${RE_CLUSTER_NAME}
- RE_DB_PORT=${RE_DB_PORT}
- RE_USE_RE_USE_OSS_CLUSTER=${RE_USE_RE_USE_OSS_CLUSTER}
- RE_USE_OSS_CLUSTER=${RE_USE_OSS_CLUSTER}
volumes:
- "$PWD/setup_cluster.sh:/opt/setup_cluster.sh"
- "$PWD/create_db.sh:/opt/create_db.sh"
Expand All @@ -39,7 +39,7 @@ services:
- RE_PASS=${RE_PASS}
- RE_CLUSTER_NAME=${RE_CLUSTER_NAME}
- RE_DB_PORT=${RE_DB_PORT}
- RE_USE_RE_USE_OSS_CLUSTER=${RE_USE_RE_USE_OSS_CLUSTER}
- RE_USE_OSS_CLUSTER=${RE_USE_OSS_CLUSTER}
volumes:
- "$PWD/join_node.sh:/opt/join_node.sh"
networks:
Expand All @@ -62,7 +62,7 @@ services:
- RE_PASS=${RE_PASS}
- RE_CLUSTER_NAME=${RE_CLUSTER_NAME}
- RE_DB_PORT=${RE_DB_PORT}
- RE_USE_RE_USE_OSS_CLUSTER=${RE_USE_RE_USE_OSS_CLUSTER}
- RE_USE_OSS_CLUSTER=${RE_USE_OSS_CLUSTER}
volumes:
- "$PWD/join_node.sh:/opt/join_node.sh"
networks:
Expand Down