You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
10 months ago
|
v7 cluster created using these commands.
|
||
|
|
||
|
./rqlited -raft-snap=16 -raft-snap-int=1s -node-id 1 data.1
|
||
|
./rqlited -raft-snap=16 -raft-snap-int=1s -http-addr localhost:4003 -raft-addr localhost:4004 -join localhost:4001 -node-id 2 data.2
|
||
|
./rqlited -raft-snap=16 -raft-snap-int=1s -http-addr localhost:4005 -raft-addr localhost:4006 -join localhost:4001 -node-id 3 data.3
|
||
|
|
||
|
-raft-snap=16 -raft-snap-int=1s
|
||
|
|
||
|
Query:
|
||
|
|
||
|
~/r7/rqlite-v7.21.4-linux-amd64 $ ./rqlite
|
||
|
Welcome to the rqlite CLI. Enter ".help" for usage hints.
|
||
|
Version v7.21.4, commit 971921f1352bdc73e4e66a1ec43be8c1028ff18b, branch master
|
||
|
Connected to rqlited version v7.21.4
|
||
|
127.0.0.1:4001> .schema
|
||
|
+----------------------------------------------------------------------------+
|
||
|
| sql |
|
||
|
+----------------------------------------------------------------------------+
|
||
|
| CREATE TABLE foo (id INTEGER NOT NULL PRIMARY KEY, name TEXT, age INTEGER) |
|
||
|
+----------------------------------------------------------------------------+
|
||
|
127.0.0.1:4001> select count(*) from foo;
|
||
|
+----------+
|
||
|
| count(*) |
|
||
|
+----------+
|
||
|
| 28 |
|
||
|
+----------+
|
||
|
127.0.0.1:4001>
|
||
|
|