'How to change the replication of a vgroup in TDengine?
I'am using TDengine as a time-series storage engine. How could I change the replication of a vgroup from 2 to 3? During the change, should I do or not to do something?
Solution 1:[1]
try following commands in taos shell
alter database db replica 3
Solution 2:[2]
Change it will sql statement:
alter database dbname replica 3.
Here's the full list you can use with alter for a database:
- keep: days to keep data in the database
- cache/blocks: the memory cache for vnode: cache*blocks
- wal
- fsync
- replica
- cachelast
- quorum
See more details in docs for Database Management
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Xiao Ping |
Solution 2 | zitsen |