当前位置: 首页 > news >正文

西客站网站建设建筑信息平台官网

西客站网站建设,建筑信息平台官网,营销网站建设与管理,永久免费网站模板本文主要是根据官方文档指导#xff0c;结合实际主机情况#xff0c;在Cent OS7上使用TiUP在线部署TiDB。 环境说明 类型操作系统版本配置中控机Deepin 20.34核CPU6G内存40G硬盘TiDB部署机Cent OS 7.38核CPU48G内存100硬盘网络情况中控机与外网相连#xff0c;中控机与部署… 本文主要是根据官方文档指导结合实际主机情况在Cent OS7上使用TiUP在线部署TiDB。 环境说明 类型操作系统版本配置中控机Deepin 20.34核CPU6G内存40G硬盘TiDB部署机Cent OS 7.38核CPU48G内存100硬盘网络情况中控机与外网相连中控机与部署机网络互通 第一步在中控机在线部署TiUP组件 # 安装TiUP工具 $ curl --proto https --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh # 重新声明全局环境变量 $ source .bash_profile # 确认Tiup 是否安装 $ which tiup /root/.tiup/bin/tiup # 安装TiUP cluster组件 $ tiup cluster # 查看TiUP cluster版本 $ tiup --binary cluster /root/.tiup/components/cluster/v1.11.3/tiup-cluster第二步编写集群拓扑文件 ## 全局变量ssh端口要填写部署机实际的ssh端口 global:user: tidbssh_port: 2333deploy_dir: /tidb-deploydata_dir: /tidb-data # # Monitored variables are applied to all the machines. monitored:node_exporter_port: 9100blackbox_exporter_port: 9115server_configs:tidb:log.slow-threshold: 300tikv:readpool.storage.use-unified-pool: falsereadpool.coprocessor.use-unified-pool: truepd:replication.enable-placement-rules: truereplication.location-labels: [host] pd_servers:- host: 192.168.58.10tidb_servers:- host: 192.168.58.10tikv_servers:- host: 192.168.58.10port: 20160status_port: 20180config:server.labels: { host: logic-host-1 }- host: 192.168.58.10port: 20161status_port: 20181config:server.labels: { host: logic-host-2 }- host: 192.168.58.10port: 20162status_port: 20182config:server.labels: { host: logic-host-3 } monitoring_servers:- host: 192.168.58.10 grafana_servers:- host: 192.168.58.10附录官方在线文档中还部署了TiFlash但是实际执行总是报错因此在本配置文件中移除了TiFlash部署。 第三步执行部署指令 在中控机执行以下指令 tidb-test为集群名 v6.5.0为要安装的TiDB集群组件版本 --user root为部署机的ssh账号需根据实际替换 ./topo.yaml为集群拓扑配置 -p为执行交互输入ssh账号密码 $ tiup cluster deploy tidb-test v6.5.0 ./topo.yaml --user root -p第四步启动TiDB集群 $ tiup cluster start tidb-test第五步查看TiDB集群情况 # 查看集群信息包括集群名、版本、安装用户等 $ tiup cluster list tiup is checking updates for component cluster ... Starting component cluster: /root/.tiup/components/cluster/v1.11.3/tiup-cluster list Name User Version Path PrivateKey ---- ---- ------- ---- ---------- tidb-test root v6.5.0 /root/.tiup/storage/cluster/clusters/tidb-test /root/.tiup/storage/cluster/clusters/tidb-test/ssh/id_rsa # 查看集群下节点状态等信息 $ tiup cluster display tidb-test tiup is checking updates for component cluster ... Starting component cluster: /root/.tiup/components/cluster/v1.11.3/tiup-cluster display tidb-test Cluster type: tidb Cluster name: tidb-test Cluster version: v6.5.0 Deploy user: root SSH type: builtin Dashboard URL: http://192.168.58.10:2379/dashboard Grafana URL: http://192.168.58.10:3000 ID Role Host Ports OS/Arch Status Data Dir Deploy Dir -- ---- ---- ----- ------- ------ -------- ---------- 192.168.58.10:3000 grafana 192.168.58.10 3000 linux/x86_64 Up - /tidb-deploy/grafana-3000 192.168.58.10:2379 pd 192.168.58.10 2379/2380 linux/x86_64 Up|L|UI /tidb-data/pd-2379 /tidb-deploy/pd-2379 192.168.58.10:9090 prometheus 192.168.58.10 9090/12020 linux/x86_64 Up /tidb-data/prometheus-9090 /tidb-deploy/prometheus-9090 192.168.58.10:4000 tidb 192.168.58.10 4000/10080 linux/x86_64 Up - /tidb-deploy/tidb-4000 192.168.58.10:20160 tikv 192.168.58.10 20160/20180 linux/x86_64 Up /tidb-data/tikv-20160 /tidb-deploy/tikv-20160 192.168.58.10:20161 tikv 192.168.58.10 20161/20181 linux/x86_64 Up /tidb-data/tikv-20161 /tidb-deploy/tikv-20161 192.168.58.10:20162 tikv 192.168.58.10 20162/20182 linux/x86_64 Up /tidb-data/tikv-20162 /tidb-deploy/tikv-20162 Total nodes: 8第六步 使用TiDB 方式一使用navicat按照mysql的连接方式192.168.57.10:4000端口即可 方式二访问http://192.168.58.10:2379/dashboard访问监控面板 参考材料 PingCAP使用TiUP部署
http://www.hkea.cn/news/14559096/

相关文章:

  • 怎么形容网站做的很好品牌策划包括哪些内容
  • 数据网站建设哪家好wordpress wp_query 分页
  • 网页设计与网站建设案例课堂网站建设什么原因最主要
  • 怎么做QQ信任网站腾讯网站建设推广
  • 百度网站类型最好网站开发公司电话
  • 阿里云服务器多个网站阿里云 wordpress 权限设置
  • 快消品网站建设h5在线编辑器
  • 建设学校网站论文网站的建设背景
  • 网站数字化建设网站设计方案范本
  • js模板网站企业网站定位
  • 品牌网站建设教程网站建设 dw
  • 前端网站效果有哪些wordpress商城模板好用吗
  • c 网站开发实例西安seo交流
  • 宁波网站优化公司去黄山旅游攻略
  • django 网站开发案例微信开放平台是干什么的
  • 免费网站建设设计制作公司即墨网站建设
  • 网站空间信息查询什么是网络营销举例子
  • 做网站应该会什么问题wordpress 算数验证码
  • 新手如何自己建网站注册安全工程师报名
  • 做网站销售说辞wordpress搭建系统
  • dede网站模板安装阿里云主机安装wordpress
  • 制作网站怎么做导航栏版面设计的目的是什么
  • 网站开发技术是什么专业会的一级域名与二级域名玩法
  • 男男做爰视频网站noren wordpress
  • 深圳 环保 骏域网站建设专家电商公司的网上设计
  • 女做受视频网站上海国际贸易有限公司
  • seo网站建设培训企业网站建设常见问题
  • 电商网站现状分析还有网站吗
  • 来宾市住房和城乡建设局网站卓越网站建设的优点
  • 网站做支付宝支付需要哪些资料章丘市网站建设seo