乱读天书, 不求甚解
周祎骏的个人云笔记
Toggle navigation
乱读天书, 不求甚解
主页
Linux:系统配置
Linux:用户管理
Linux:优化排错
Linux:进程调度
Linux:文件系统
Linux:网络
Linux:系统服务
Linux:安全
Linux:内核
容器:Docker
容器:containerd
容器编排:Kubernetes
IAC:Terraform
大数据:Hadoop
大数据:Zookeeper
大数据:Hbase
消息队列:rsyslog
消息队列:kafka
数据库:MySQL
数据库:MongoDB
搜索引擎:Elasticsearch
时序数据库:OpenTSDB
网站服务:Nginx
编程:Bash
编程:Perl
编程:Python
编程:C
编程:JAVA
编程:Rust
版本控制:gitlab
知识管理:docusaurus
常用小工具
关于我
标签
OpenTSDB 1.0 安装
2023-01-25 11:13:16
55
0
0
admin
> 安装一个实例 1.[安装Hbase](/blog/post/admin/Hbase_install_standalone) *** 2.安装 gnuplot yum list |grep gnuplot *** 3.编译包 mkdir /leo/opentsdb cd /leo/opentsdb/ tar -xzvf /tmp/opentsdb-2.3.0.tar.gz cd opentsdb-2.3.0/ mkdir build cp -r third_party/ build/ ./build.sh *** 4.创建Hbase 的表,一个Hbase集群只需要跑一次 env COMPRESSION=NONE HBASE_HOME=/leo/hbase/hbase-1.2.5/ ./src/create_table.sh *** 5.编辑配置文件 cd build mkdir tmp cp ../src/opentsdb.conf ./ vim opentsdb.conf ``` # --------- NETWORK ---------- # The TCP port TSD should use for communications # *** REQUIRED *** tsd.network.port = 4242 #监听端口 # The IPv4 network address to bind to, defaults to all addresses # tsd.network.bind = 0.0.0.0 # Disable Nagel's algorithm, default is True #tsd.network.tcp_no_delay = true # Determines whether or not to send keepalive packets to peers, default # is True #tsd.network.keep_alive = true # Determines if the same socket should be used for new connections, default # is True #tsd.network.reuse_address = true # Number of worker threads dedicated to Netty, defaults to # of CPUs * 2 #tsd.network.worker_threads = 8 # Whether or not to use NIO or tradditional blocking IO, defaults to True #tsd.network.async_io = true # ----------- HTTP ----------- # The location of static files for the HTTP GUI interface. # *** REQUIRED *** tsd.http.staticroot = /leo/opentsdb/opentsdb-2.3.0/build/staticroot/ #这个目录在build好的时候就已经有了 # Where TSD should write it's cache files to # *** REQUIRED *** tsd.http.cachedir = /leo/opentsdb/opentsdb-2.3.0/build/tmp/ #这个目录自己建 # --------- CORE ---------- # Whether or not to automatically create UIDs for new metric types, default # is False tsd.core.auto_create_metrics = true #如果有新的数据项,自动建立 # Whether or not to enable the built-in UI Rpc Plugins, default # is True #tsd.core.enable_ui = true # Whether or not to enable the built-in API Rpc Plugins, default # is True #tsd.core.enable_api = true # --------- STORAGE ---------- # Whether or not to enable data compaction in HBase, default is True #tsd.storage.enable_compaction = true # How often, in milliseconds, to flush the data point queue to storage, # default is 1,000 # tsd.storage.flush_interval = 1000 # Max number of rows to be returned per Scanner round trip # tsd.storage.hbase.scanner.maxNumRows = 128 # Name of the HBase table where data points are stored, default is "tsdb" #tsd.storage.hbase.data_table = tsdb # Name of the HBase table where UID information is stored, default is "tsdb-uid" #tsd.storage.hbase.uid_table = tsdb-uid # Path under which the znode for the -ROOT- region is located, default is "/hbase" #tsd.storage.hbase.zk_basedir = /hbase # A comma separated list of Zookeeper hosts to connect to, with or without # port specifiers, default is "localhost" tsd.storage.hbase.zk_quorum = localhost #hbase 在哪 # --------- COMPACTIONS --------------------------------- # Frequency at which compaction thread wakes up to flush stuff in seconds, default 10 # tsd.storage.compaction.flush_interval = 10 # Minimum rows attempted to compact at once, default 100 # tsd.storage.compaction.min_flush_threshold = 100 # Maximum number of rows, compacted concirrently, default 10000 # tsd.storage.compaction.max_concurrent_flushes = 10000 # Compaction flush speed multiplier, default 2 # tsd.storage.compaction.flush_speed = 2 tsd.http.query.allow_delete = true #允许删除数据 ``` *** 6.启动 nohup ./tsdb tsd & 现在可以通过浏览器访问4242端口了
上一篇:
OpenTSDB 0.0 大致介绍
下一篇:
OpenTSDB 2.0 简单使用
文档导航