数据库配置项 enable_partitioned_index_filter不生效

  • nebula 版本:v200rc1
  • 部署方式(分布式 / 单机 / Docker / DBaaS):分布式
  • 硬件信息
    内存50G,硬盘500G(SSD)

问题
v2中有没有enable_partitioned_index_filter配置项,如有该怎么配置以及怎么判断是否生效
背景:
enable_partitioned_index_filter
v1文档中有 该参数(https://docs.nebula-graph.com.cn/manual-CN/3.build-develop-and-administration/3.configurations/5.storage-config/)
v2 文档和默认配置文件中都没有该参数项(https://docs.nebula-graph.io/manual-EN/3.build-develop-and-administration/3.configurations/5.storage-config/)

操作
1、配置文件中增加该项
2、重启服务
3、get configs storage:enable_partitioned_index_filter

操作截图:

(root@nebula) [(none)]> get configs storage:enable_partitioned_index_filter
[ERROR (-8)]: Get config `enable_partitioned_index_filter' failed: Not ready!

Fri, 29 Jan 2021 11:01:55 CST

(root@nebula) [(none)]> ^C
(root@nebula) [(none)]>

Bye root!
Fri, 29 Jan 2021 11:06:48 CST

[root@test-nebula-cluster-1 etc]# tailf /matrix/data/nebula/etc/nebula-storaged.conf

############## rocksdb Options ##############
--rocksdb_disable_wal=true
# rocksdb DBOptions in json, each name and value of option is a string, given as "option_name":"option_value" separated by comma
--rocksdb_db_options={}
# rocksdb ColumnFamilyOptions in json, each name and value of option is string, given as "option_name":"option_value" separated by comma
--rocksdb_column_family_options={"write_buffer_size":"67108864","max_write_buffer_number":"4","max_bytes_for_level_base":"268435456"}
# rocksdb BlockBasedTableOptions in json, each name and value of option is string, given as "option_name":"option_value" separated by comma
--rocksdb_block_based_table_options={"block_size":"8192"}
--enable_partitioned_index_filter=true

(root@nebula) [(none)]> UPDATE CONFIGS storage:enable_reservoir_sampling = false;
[ERROR (-8)]: Set config `enable_reservoir_sampling' failed: not existed!

关于配置部分代码和文档都还没有改完。
建议直接改配置文件–local_conf=true.

在每个配置文件开始,都有配置 --local_config=true

你好,不是所有的 storage 或者 graph 的 flag 都可以修改,只有哪些可以修改的 flag 才能通过 SHOW CONFIGSGET CONFIGS 等命令来操作,至于哪些可以修改可以参考这个文件:

https://github.com/vesoft-inc/nebula-storage/blob/master/resources/gflags.json

了解,有没有配置成功或者生效,是不是没法看。我看日志中也没有对应的记录

可以使用 storage 的 http 接口来查询,如下所示:

$ curl "http://127.0.0.1:12320/get_flags?flags=enable_partitioned_index_filter"
enable_partitioned_index_filter=0

上面的 12320 端口见 nebula-storage.conf 中的配置:

# HTTP service port
--ws_http_port=12320

@min.wu 看看这块需要补充文档吗?

最近这些代码一直再改。

请问 现在上线的 2.0 GA 支持设置 enable_partitioned_index_filter 吗?我设置后在console 和 storage 的 http接口中都查不到

1 个赞

这个应该是在配置文件中指定的,看 storage 代码里有这个参数的定义

哦哦,看到了。还想问下,enable_reservoir_sampling 这个参数是不是GA还没生效,在配置文件中加入后,查询结果是下面这样。而且console也看不到

如果没记错 采样现在暂时不能用 2.0版本会在语句里面支持设置采样数量 和1.0用gflag全局控制不一样

感谢!很期待这个功能,能在语句里设定感觉对业务支持度很好

@steam

我们会在 2.0 后续版本里支持采样,有进一步的开发进展我来同步下信息哈