how about: flush [<sg>, <sg>] [--all-nodes] [-node <ip>]
omitting [<sg>] means flush all sgs. -- all-nodes means flush on each nodes -node <ip> means flush on the given node omitting [-node <ip>] and [--all-nodes] equals [-node 127.0.0.1] --all-nodes and -node are mutually exclusive Best, ----------------------------------- Xiangdong Huang School of Software, Tsinghua University 黄向东 清华大学 软件学院 Eric Pai <ericpa...@hotmail.com> 于2022年5月23日周一 11:27写道: > +1. It's not necessary to give 2 different syntax but with same meaning. > Just define the most suitable one. > > 在 2022/5/23 11:22,“Haonan Hou”<hhaonan4...@qq.com.INVALID> 写入: > > Hi, > > +1 for `FLUSH ALL` syntax. > > `FLUSH` and `FLUSH sg` are the existing syntax of the current > standalone version. > If we execute `FLUSH ALL` on standalone IoTDB, it can be equals to > `Flush` command. > `flush cluster` sounds meaningless for standalone IoTDB. > > Best, > Haonan Hou > > > On May 23, 2022, at 11:07 AM, Jialin Qiao <qiaojia...@apache.org> > wrote: > > > > Hi, > > > > Flush is a frequently used command in IoTDB, which flushes memtable > into > > disk and closes all tsfiles. > > > > In the new cluster, we need to redefine this function [1]. > > > > * flush: flushing current datanode > > > > * flush all/cluster: flushing all datanodes > > > > * flush sg: flush all DataRegions of a storage group > > > > > > What do you think? > > > > [1] > https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FIOTDB-3099&data=05%7C01%7C%7Cad1f61d413164120347708da3c6b86e5%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637888729789442308%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=6X9ZDSKSOLA0HCkAr5v9uNiK1KkI71SOrzXLW%2BH4GBs%3D&reserved=0 > > > > ————————————————— > > Jialin Qiao > > Apache IoTDB PMC > > >