@@ -39,8 +39,8 @@ timeseries_semantic_version=$(sudo docker exec --user root -it re-node1 bash -c
39
39
40
40
echo " Creating databases..."
41
41
tee -a create_demodb.sh << EOF
42
- curl -v -k -L -u [email protected] :redislabs --location-trusted -H "Content-type:application/json" -d '{ "name": "RedisConnect- Target-db ", "port": 12000, "memory_size": 1000000000, "type" : "redis", "replication": false, "module_list": [ {"module_args": "PARTITIONS AUTO", "module_name": "$search_module_name ", "semantic_version": "$search_semantic_version "}, {"module_args": "", "module_name": "$json_module_name ", "semantic_version": "$json_semantic_version "} ] }' https://localhost:9443/v1/bdbs
43
- curl -v -k -L -u [email protected] :redislabs --location-trusted -H "Content-type:application/json" -d '{"name": "RedisConnect-JobConfig-Metrics-db ", "type":"redis", "replication": false, "memory_size":1000000000, "port":12001, "module_list": [{"module_args": "", "module_name": "$timeseries_module_name ", "semantic_version": "$timeseries_semantic_version "} ] }' https://localhost:9443/v1/bdbs
42
+ curl -v -k -L -u [email protected] :redislabs --location-trusted -H "Content-type:application/json" -d '{ "name": "Target", "port": 12000, "memory_size": 1000000000, "type" : "redis", "replication": false, "module_list": [ {"module_args": "PARTITIONS AUTO", "module_name": "$search_module_name ", "semantic_version": "$search_semantic_version "}, {"module_args": "", "module_name": "$json_module_name ", "semantic_version": "$json_semantic_version "} ] }' https://localhost:9443/v1/bdbs
43
+ curl -v -k -L -u [email protected] :redislabs --location-trusted -H "Content-type:application/json" -d '{"name": "JobManager ", "type":"redis", "replication": false, "memory_size":1000000000, "port":12001, "module_list": [{"module_args": "", "module_name": "$timeseries_module_name ", "semantic_version": "$timeseries_semantic_version "} ] }' https://localhost:9443/v1/bdbs
44
44
EOF
45
45
46
46
sleep 20
@@ -62,7 +62,7 @@ echo $timeseries_semantic_version
62
62
63
63
echo " Creating idx:emp index for search.."
64
64
sleep 10
65
- sudo docker exec -it re-node1 bash -c " /opt/redislabs/bin/redis-cli -p 12000 ft.create idx:emp on hash prefix 1 'emp :' schema EmpNum numeric sortable FName text sortable LName text Job tag sortable Manager numeric HireDate text Salary numeric Commission numeric Department numeric"
65
+ sudo docker exec -it re-node1 bash -c " /opt/redislabs/bin/redis-cli -p 12000 ft.create idx:emp on hash prefix 1 'EMP :' schema EMPNO numeric sortable FNAME text sortable LNAME text JOB tag sortable MGR numeric HIREDATE text SAL numeric COMM numeric DEPT numeric"
66
66
sudo docker exec -it re-node1 bash -c " /opt/redislabs/bin/redis-cli -p 12000 ft.info idx:emp"
67
67
echo " Database port mappings per node. We are using mDNS so use the IP and exposed port to connect to the databases."
68
68
echo " node1:"
0 commit comments