From 4ab7de4d13365f5841219b0760deaecbbb2a6272 Mon Sep 17 00:00:00 2001 From: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com> Date: Mon, 8 Jan 2024 10:26:09 +0200 Subject: [PATCH] Add RedisGears to db (#12) Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com> --- .github/workflows/tests.yml | 3 ++- create_db.sh | 18 +++++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8834a5a..f9a4b33 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -41,4 +41,5 @@ jobs: - name: Run PING command run: | - docker exec master bash -c "/opt/redislabs/bin/redis-cli -p ${{ env.RE_DB_PORT }} ping" \ No newline at end of file + docker exec master bash -c "/opt/redislabs/bin/redis-cli -p ${{ env.RE_DB_PORT }} ping" + docker exec master bash -c "/opt/redislabs/bin/rladmin status modules" \ No newline at end of file diff --git a/create_db.sh b/create_db.sh index f6c1366..1352832 100755 --- a/create_db.sh +++ b/create_db.sh @@ -1,5 +1,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": "bf"}], "oss_cluster": '$RE_USE_OSS_CLUSTER', "proxy_policy": "all-nodes", "shards_placement": "sparse", "shard_key_regex": [{"regex": ".*\\{(?.*)\\}.*"},{"regex": "(?.*)"}]}' \ + -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": ".*\\{(?.*)\\}.*"},{"regex": "(?.*)"}]}' \ -k -X POST -f https://localhost:9443/v1/bdbs \ No newline at end of file