Skip to content

Commit

Permalink
Fixed ENV variable naming typo
Browse files Browse the repository at this point in the history
  • Loading branch information
vladvildanov committed Jan 2, 2024
1 parent 30a1195 commit 9769f25
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit 9769f25

Please sign in to comment.