Skip to content

Commit 30a1195

Browse files
chayimvladvildanov
andauthored
Aligning variable names (#7)
* adding variable consistency * Updated ENV variables names --------- Co-authored-by: vladvildanov <divinez122@outlook.com>
1 parent 9b28aab commit 30a1195

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ IMAGE=redislabs/redis:latest
22
RE_USERNAME=test@test.com
33
RE_PASS=12345
44
RE_CLUSTER_NAME=test
5-
OSS_CLUSTER=false
6-
DB_PORT=12000
5+
RE_USE_OSS_CLUSTER=false
6+
RE_DB_PORT=12000

.github/workflows/modes/.env.oss_cluster

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ IMAGE=redislabs/redis:latest
22
RE_USERNAME=test@test.com
33
RE_PASS=12345
44
RE_CLUSTER_NAME=test
5-
OSS_CLUSTER=true
6-
DB_PORT=6378
5+
RE_USE_OSS_CLUSTER=true
6+
RE_DB_PORT=6378

.github/workflows/modes/.env.proxy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ IMAGE=redislabs/redis:latest
22
RE_USERNAME=test@test.com
33
RE_PASS=12345
44
RE_CLUSTER_NAME=test
5-
OSS_CLUSTER=false
6-
DB_PORT=6379
5+
RE_USE_OSS_CLUSTER=false
6+
RE_DB_PORT=6379

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export $(cat .env.credentials | xargs)
1717

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

2222
All standard RE ports available from your local network:
2323

create_db.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

33
curl -u $RE_USERNAME:$RE_PASS -H "Content-type: application/json" \
4-
-d '{"name": "db", "port": '$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": '$OSS_CLUSTER', "proxy_policy": "all-nodes", "shards_placement": "sparse", "shard_key_regex": [{"regex": ".*\\{(?<tag>.*)\\}.*"},{"regex": "(?<tag>.*)"}]}' \
4+
-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>.*)"}]}' \
55
-k -X POST https://localhost:9443/v1/bdbs

docker-compose.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ services:
1414
- RE_USERNAME=${RE_USERNAME}
1515
- RE_PASS=${RE_PASS}
1616
- RE_CLUSTER_NAME=${RE_CLUSTER_NAME}
17-
- DB_PORT=${DB_PORT}
18-
- OSS_CLUSTER=${OSS_CLUSTER}
17+
- RE_DB_PORT=${RE_DB_PORT}
18+
- RE_USE_RE_USE_OSS_CLUSTER=${RE_USE_RE_USE_OSS_CLUSTER}
1919
volumes:
2020
- "$PWD/setup_cluster.sh:/opt/setup_cluster.sh"
2121
- "$PWD/create_db.sh:/opt/create_db.sh"
@@ -38,8 +38,8 @@ services:
3838
- RE_USERNAME=${RE_USERNAME}
3939
- RE_PASS=${RE_PASS}
4040
- RE_CLUSTER_NAME=${RE_CLUSTER_NAME}
41-
- DB_PORT=${DB_PORT}
42-
- OSS_CLUSTER=${OSS_CLUSTER}
41+
- RE_DB_PORT=${RE_DB_PORT}
42+
- RE_USE_RE_USE_OSS_CLUSTER=${RE_USE_RE_USE_OSS_CLUSTER}
4343
volumes:
4444
- "$PWD/join_node.sh:/opt/join_node.sh"
4545
networks:
@@ -61,8 +61,8 @@ services:
6161
- RE_USERNAME=${RE_USERNAME}
6262
- RE_PASS=${RE_PASS}
6363
- RE_CLUSTER_NAME=${RE_CLUSTER_NAME}
64-
- DB_PORT=${DB_PORT}
65-
- OSS_CLUSTER=${OSS_CLUSTER}
64+
- RE_DB_PORT=${RE_DB_PORT}
65+
- RE_USE_RE_USE_OSS_CLUSTER=${RE_USE_RE_USE_OSS_CLUSTER}
6666
volumes:
6767
- "$PWD/join_node.sh:/opt/join_node.sh"
6868
networks:

0 commit comments

Comments
 (0)