@@ -39,8 +39,8 @@ timeseries_semantic_version=$(sudo docker exec --user root -it re-node1 bash -c
3939
4040echo " Creating databases..."
4141tee -a create_demodb.sh << EOF
42- curl -v -k -L -u demo@redis.com: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 demo@redis.com: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 demo@redis.com: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 demo@redis.com: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
4444EOF
4545
4646sleep 20
@@ -62,7 +62,7 @@ echo $timeseries_semantic_version
6262
6363echo " Creating idx:emp index for search.."
6464sleep 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"
6666sudo docker exec -it re-node1 bash -c " /opt/redislabs/bin/redis-cli -p 12000 ft.info idx:emp"
6767echo " Database port mappings per node. We are using mDNS so use the IP and exposed port to connect to the databases."
6868echo " node1:"
0 commit comments