optsdb翻译--配置

opentsdb可以通过本地文件,命令行参数或者是两者的组合来配置
**

配置文件

**
配置文件符合java属性文件的规范,配置名字是小写以点号相隔,并且之间没有空格,每个名字跟着一个等号,然后是属性值。所有的opentsdb属性都以tsd.开头,注释或者是未激活的配置行以”#”开始,例如:
# List of Zookeeper hosts that manage the HBase cluster
tsd.storage.hbase.zk_quorum = 192.168.1.100

配置的是tsd连接192.168.1.100上的zookeeper

然后是组合的配置文件和命令行配置,顺序如下:
1、加载默认值
2、加载配置文件重构默认值
3、加载命令行参数,重构配置文件和默认值

文件位置

可以通过–config命令行参数来制定配置文件的全路径。如果没有制定,opentsdb和其它的命令行工具会试图通过下列位置来查找配置文件:
./opentsdb.conf
/etc/opentsdb.conf
/etc/opentsdb/opentsdb.conf
/opt/opentsdb/opentsdb.conf

属性

以下是所有工具的配置选项表,可以提供相应的命令行覆盖。


tsd.core.auto_create_metrics
布尔值,可选项,当数据项带有一个新的metric是否会分配一个UID.false,当数据项带有一个新的metric不在数据库中会舍弃并且抛出异常。默认值false


tsd.core.auto_create_tagks (2.1)
意思同上,默认值true


tsd.core.auto_create_tagvs (2.1)
意思同上,默认值true


tsd.core.meta.enable_realtime_ts
布尔值,可选项,Whether or not to enable real-time TSMeta object creation. 默认值false


tsd.core.meta.enable_realtime_uid
布尔值,可选项,Whether or not to enable real-time UIDMeta object creation. 默认值false


tsd.core.meta.enable_tsuid_incrementing
布尔值,可选项,Whether or not to enable tracking of TSUIDs by incrementing a counter every time a data point is recorded. See Metadata (Overrides “tsd.core.meta.enable_tsuid_tracking”)。默认值false


tsd.core.meta.enable_tsuid_tracking
Boolean Optional Whether or not to enable tracking of TSUIDs by storing a 1 with the current timestamp every time a data point is recorded. 默认值False


tsd.core.plugin_path
字符串,可选项,TSD启动查找pugins的路径,如果路径失败,TSD会启动失败,如果plugins在classpath,plugins仍旧能启动。


tsd.core.preload_uid_cache (2.1)
布尔值,可选项, Enables pre-population of the UID caches when starting a TSD. 默认值False


tsd.core.preload_uid_cache.max_entries (2.1)
整型,可选项,The number of rows to scan for UID pre-loading. 默认值300,000


tsd.core.storage_exception_handler.enable (2.2)
布尔值,可选项,Whether or not to enable the configured storage exception handler plugin. 默认值False


tsd.core.storage_exception_handler.plugin (2.2)
字符串,可选项 。The full class name of the storage exception handler plugin you wish to use.


tsd.core.timezone
字符串,可选项 A localized timezone identification string used to override the local system timezone used when converting absolute times to UTC when executing a query. This does not affect incoming data timestamps. E.g. America/Los_Angeles 默认系统配置


tsd.core.tree.enable_processing
布尔值,可选项 Whether or not to enable processing new/edited TSMeta through tree rule sets 默认值false


tsd.core.uid.random_metrics (2.2)
布尔值,可选项 Whether or not to randomly assign UIDs to new metrics as they are created 默认值false


tsd.http.cachedir
字符串,必选项, 临时文件的全路径,该文件必须可写,例如 /tmp/opentsdb 命令行参数:–cachedir


tsd.http.query.allow_delete
布尔值,可选项 在查询时是否允许删除数据点 默认值False


tsd.http.request.cors_domains
字符串,可选项。允许访问opentsdb域名称,以逗号分隔,如果为空,CORS请求未经验证通过,不允许包含同时包含通配符*和公众特定域( specific domains)


tsd.http.request.cors_headers (2.1)
字符串,可选项 A comma separated list of headers sent to clients when executing a CORs request. The literal value of this option will be passed to clients. Authorization, Content-Type, Accept, Origin, User-Agent, DNT, Cache-Control, X-Mx-ReqToken, Keep-Alive, X-Requested-With, If-Modified-Since


tsd.http.request.enable_chunked
布尔值,可选项,是否启用 incoming chunk support for the HTTP RPC
默认值false


tsd.http.request.max_chunk
整型,可选 The maximum request body size to support for incoming HTTP requests when chunking is enabled. 默认值4096


tsd.http.rpc.plugins (2.2)
字符串,可选项。启动tsd时,以逗号分隔的RPC插件列表,必须包含全部的类名。


tsd.http.show_stack_trace
布尔值,可选项。 当异常发生时,是否返回堆栈跟踪与接口查询响应 默认值false


tsd.http.staticroot
字符串 必选项。静态文件的位置,像web接口中JavaScript文件,例如 /opt/opentsdb/staticroot –staticroot


tsd.mode (2.1)
字符串 可选项,TSD是否允许写数据点。必须是rw写数据或者是ro写数据块。注意像UIDs的元数据能够写/修改。默认值rw


tsd.network.async_io
布尔值,可选。是否使用NIO或者传统的blocking IO。默认值True。 命令行–async-io


tsd.network.backlog
Integer Optional The connection queue depth for completed or incomplete connection requests depending on OS. The default may be limited by the ‘somaxconn’ kernel setting or set by Netty to 3072. See Description –backlog


tsd.network.bind
String Optional An IPv4 address to bind to for incoming requests. The default is to listen on all interfaces. E.g. 127.0.0.1 0.0.0.0 –bind


tsd.network.keep_alive
Boolean Optional Whether or not to allow keep-alive connections True


tsd.network.port
整型,必选项。使用接收连接的tcp端口,命令行–port


tsd.network.reuse_address
Boolean Optional Whether or not to allow reuse of the bound port within Netty True


tsd.network.tcp_no_delay
Boolean Optional Whether or not to disable TCP buffering before sending data True


tsd.network.worker_threads
Integer Optional The number of asynchronous IO worker threads for Netty #CPU cores * 2 –worker-threads


tsd.no_diediedie (2.1)
Boolean Optional Enable or disable the diediedie HTML and ASCII commands to shutdown a TSD. False


tsd.query.allow_simultaneous_duplicates (2.2)
Boolean Optional Whether or not to allow simultaneous duplicate queries from the same host. If disabled, a second query that comes in matching one already running will receive an exception. False


tsd.query.filter.expansion_limit (2.2)
Integer Optional The maximum number of tag values to include in the regular expression sent to storage during scanning for data. A larger value means more computation on the HBase region servers. 4096 1024


tsd.query.skip_unresolved_tagvs (2.2)
Boolean Optional Whether or not to continue querying when the query includes a tag value that hasn’t been assigned a UID yet and may not exist. False


tsd.query.timeout (2.2)
Integer Optional How long, in milliseconds, before canceling a running query. A value of 0 means queries will not timeout. 0


tsd.rpc.plugins
String Optional A comma delimited list of RPC plugins to load when starting a TSD. Must contain the entire class name.


tsd.rtpublisher.enable
Boolean Optional Whether or not to enable a real time publishing plugin. If true, you must supply a valid tsd.rtpublisher.plugin class name False


tsd.rtpublisher.plugin
String Optional The class name of a real time publishing plugin to instantiate. If tsd.rtpublisher.enable is set to false, this value is ignored. E.g. net.opentsdb.tsd.RabbitMQPublisher


tsd.search.enable
Boolean Optional Whether or not to enable search functionality. If true, you must supply a valid tsd.search.plugin class name False


tsd.search.plugin
String Optional The class name of a search plugin to instantiate. If tsd.search.enable is set to false, this value is ignored. E.g. net.opentsdb.search.ElasticSearch


tsd.stats.canonical
Boolean Optional Whether or not the FQDN should be returned with statistics requests. The default stats are returned with host= which is not guaranteed to perform a lookup and return the FQDN. Setting this to true will perform a name lookup and return the FQDN if found, otherwise it may return the IP. The stats output should be fqdn= false


tsd.storage.compaction.flush_interval (2.2)
Integer Optional How long, in seconds, to wait in between compaction queue flush calls 10


tsd.storage.compaction.flush_speed (2.2)
Integer Optional A multiplier used to determine how quickly to attempt flushing the compaction queue. E.g. a value of 2 means it will try to flush the entire queue within 30 minutes. A value of 1 would take an hour. 2


tsd.storage.compaction.max_concurrent_flushes (2.2)
Integer Optional The maximum number of compaction calls inflight to HBase at any given time 10000


tsd.storage.compaction.min_flush_threshold (2.2)
Integer Optional Size of the compaction queue that must be exceeded before flushing is triggered 100


tsd.storage.enable_appends (2.2)
Boolean Optional Whether or not to append data to columns when writing data points instead of creating new columns for each value. Avoids the need for compactions after each hour but can use more resources on HBase. False


tsd.storage.enable_compaction
Boolean Optional Whether or not to enable compactions True


tsd.storage.fix_duplicates (2.1)
Boolean Optional Whether or not to accept the last written value when parsing data points with duplicate timestamps. When enabled in conjunction with compactions, a compacted column will be written with the latest data points. False


tsd.storage.flush_interval
Integer Optional How often, in milliseconds, to flush the data point storage write buffer 1000 –flush-interval


tsd.storage.hbase.data_table
String Optional Name of the HBase table where data points are stored tsdb –table


tsd.storage.hbase.meta_table
String Optional Name of the HBase table where meta data are stored tsdb-meta


tsd.storage.hbase.prefetch_meta (2.2)
Boolean Optional Whether or not to prefetch the regions for the TSDB tables before starting the network interface. This can improve performance. False


tsd.storage.hbase.tree_table
String Optional Name of the HBase table where tree data are stored tsdb-tree


tsd.storage.hbase.uid_table
String Optional Name of the HBase table where UID information is stored tsdb-uid –uidtable


tsd.storage.hbase.zk_basedir
String Optional Path under which the znode for the -ROOT- region is located /hbase –zkbasedir


tsd.storage.hbase.zk_quorum
String Optional A comma-separated list of ZooKeeper hosts to connect to, with or without port specifiers. E.g. 192.168.1.1:2181,192.168.1.2:2181 localhost –zkquorum


tsd.storage.repair_appends (2.2)
Boolean Optional Whether or not to re-write appended data point columns at query time when the columns contain duplicate or out of order data. False


tsd.storage.max_tags (2.2)
Integer Optional The maximum number of tags allowed per data point. NOTE Please be aware of the performance tradeoffs of overusing tags Writing Data 8


tsd.storage.salt.buckets (2.2)
Integer Optional The number of salt buckets used to distribute load across regions. NOTE Changing this value after writing data may cause TSUID based queries to fail. 20


tsd.storage.salt.width (2.2)
Integer Optional The width, in bytes, of the salt prefix used to indicate which bucket a time series belongs in. A value of 0 means salting is disabled. WARNING Do not change after writing data to HBase or you will corrupt your tables and not be able to query any more. 0


tsd.storage.uid.width.metric (2.2)
Integer Optional The width, in bytes, of metric UIDs. WARNING Do not change after writing data to HBase or you will corrupt your tables and not be able to query any more. 3


tsd.storage.uid.width.tagk (2.2)
Integer Optional The width, in bytes, of tag name UIDs. WARNING Do not change after writing data to HBase or you will corrupt your tables and not be able to query any more. 3


tsd.storage.uid.width.tagv (2.2) Integer Optional The width, in bytes, of tag value UIDs. WARNING Do not change after writing data to HBase or you will corrupt your tables and not be able to query any more. 3

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值