-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
9 changed files
with
170 additions
and
15 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
port 7000 | ||
|
||
#enable cluster mode | ||
cluster-enabled yes | ||
|
||
#ms | ||
cluster-node-timeout 15000 | ||
|
||
cluster-config-file "nodes-7000.conf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
port 7001 | ||
|
||
#enable cluster mode | ||
cluster-enabled yes | ||
|
||
#ms | ||
cluster-node-timeout 15000 | ||
|
||
cluster-config-file "nodes-7001.conf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
port 7002 | ||
|
||
#enable cluster mode | ||
cluster-enabled yes | ||
|
||
#ms | ||
cluster-node-timeout 15000 | ||
|
||
cluster-config-file "nodes-7002.conf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
statement ok | ||
CREATE TABLE t6 (v1 int primary key, v2 int); | ||
|
||
statement ok | ||
CREATE MATERIALIZED VIEW mv6 AS SELECT * FROM t6; | ||
|
||
statement ok | ||
CREATE SINK s61 | ||
FROM | ||
mv6 WITH ( | ||
primary_key = 'v1', | ||
connector = 'redis', | ||
redis.url= '["redis://127.0.0.1:7000/","redis://127.0.0.1:7001/","redis://127.0.0.1:7002/"]', | ||
)FORMAT PLAIN ENCODE JSON(force_append_only='true'); | ||
|
||
statement ok | ||
INSERT INTO t6 VALUES (1, 1); | ||
|
||
statement ok | ||
INSERT INTO t6 VALUES (2, 2); | ||
|
||
statement ok | ||
INSERT INTO t6 VALUES (3, 3); | ||
|
||
statement ok | ||
FLUSH; | ||
|
||
statement ok | ||
DROP SINK s61; | ||
|
||
statement ok | ||
DROP MATERIALIZED VIEW mv6; | ||
|
||
statement ok | ||
DROP TABLE t6; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters