-
Notifications
You must be signed in to change notification settings - Fork 4
/
create_db.sh
executable file
·21 lines (20 loc) · 1 KB
/
create_db.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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": "redisgears_2"},
{"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 -f https://localhost:9443/v1/bdbs