当前位置:网站首页>archery安装测试
archery安装测试
2022-07-07 21:53:00 【Joyce.Du】
1、archery简介
Archery为SQL审核查询平台,旨在提升DBA的工作效率,支持多数据库的SQL上线和查询,同时支持丰富的MySQL运维功能。
2、archery安装配置
(1)下载archery软件
https://github.com/hhyo/archery/releases/
下载Latest Source Code版本
(2)下载docker-compose
https://github.com/docker/compose/releases
下载Latest "docker-compose-linux-x86_64"
将下载的软件上传到archery服务器/usr/local/bin下
mv docker-compose-Linux-x86_64 docker-compose
chmod 755 docker-compose
查看安装是否成功:
docker-compose -version
(3)安装archery
上传下载的archery到服务器
unzip Archery-1.8.5.zip
解压的目录需有足够的空余空间,mysql等元数据在这个目录下
cd Archery-1.8.5/src/docker-compose
docker-compose.yml中含有各种配置配置信息、密码等
#启动
docker-compose -f docker-compose.yml up -d
#表结构初始化
docker exec -it archery bash
cd /opt/archery
source /opt/venv4archery/bin/activate
python3 manage.py makemigrations sql
python3 manage.py migrate
#数据初始化
python3 manage.py dbshell<sql/fixtures/auth_group.sql
python3 manage.py dbshell<src/init_sql/mysql_slow_query_review.sql
#创建管理用户并设置密码
python3 manage.py createsuperuser
#重启服务
docker restart archery
(4)访问archery
archery默认端口为9123
http://172.16.80.56:9123/dashboard/
3、配置archery访问实例
(1)添加资源组
建议将开发数据库、测试数据库、正式数据库划分到不同资源组里,后期方便管理
【系统管理】--【资源组管理】--【添加组】
(2)添加实例
【实例管理】--【实例列表】--【添加实例】
MySQL实例(需开binlog):
oracle实例(需开归档):
不管是oracle还是mysql实例,均需选择资源组和实例标签,否则普通用户无法操作实例
(3)添加组
这里的组类似角色
【系统管理】--【其他配置管理】--【权限组管理】--【增加 组】Owner
将所有sql | permission权限给Owner组,保存即可
(4)添加用户
【系统管理】--【其他配置管理】--【用户管理】--【增加 用户管理】
选中刚创建的Owner组
选中资源组(这样才能对资源组中的实例操作)
保存即可
(5)系统设置
【系统管理】--【配置项管理】--【系统设置】
注意:GO_INCEPTION_HOST和BACKUP_HOST均为archery主机,mysql端口和root密码等配置可见
docker-compose.yml
开启【钉钉Webhook通知】
(6)配置工单审核流
【系统管理】--【配置项管理】--【工单审核流配置】
选择工单类型和资源组
4、普通用户测试sql上线申请
(1)SQL审核
【SQL审核】--【SQL上线】--【+提交SQL】
可以进行【SQL检测】(无需审核)和【SQL提交】(需要DBA用户和PM用户审核),待审核通过即可执行此SQL
(2)SQL查询
【SQL查询】--【在线查询】
边栏推荐
- Extended tree (I) - graphic analysis and C language implementation
- USB (XIV) 2022-04-12
- 【7.5】15. Sum of three numbers
- 【7.4】25. K 个一组翻转链表
- MongoDB快速入门
- Understand TCP's three handshakes and four waves with love
- Markdown
- Enumeration, simulation, and sorting
- webflux - webclient Connect reset by peer Error
- Dataguard 主备清理归档设置
猜你喜欢
UE4_ Ue5 combined with Logitech handle (F710) use record
[stm32+esp8266 connect Tencent cloud IOT development platform 2] stm32+esp8266-01s connect Tencent cloud
The efficient s2b2c e-commerce system helps electronic material enterprises improve their adaptability in this way
SAP HR 家庭成员信息
【LeetCode】20、有效的括号
Live server usage
SAP HR 社会工作经历 0023
List. How to achieve ascending and descending sort() 2020.8.6
C # exchange number, judge to pass the exam
Live-Server使用
随机推荐
B_ QuRT_ User_ Guide(36)
UE4_ Ue5 panoramic camera
【LeetCode】20、有效的括号
【实验分享】通过Console口登录到Cisco设备
B_QuRT_User_Guide(36)
Explain
[stm32+esp8266 connects to Tencent cloud IOT development platform 3] stm32+esp8266-01s dynamically registers devices on Tencent cloud (at instruction mode) -- with source code
USB (XIV) 2022-04-12
数据分析系列 之3σ规则/依据拉依达准则来剔除异常值
Markdown
SAP HR social work experience 0023
激光slam学习(2D/3D、偏实践)
ASP. Net open web page
Solution of intelligent supply chain collaboration platform in electronic equipment industry: solve inefficiency and enable digital upgrading of industry
UE4_ Use of ue5 blueprint command node (turn on / off screen response log publish full screen display)
【7.5】15. Sum of three numbers
C cat and dog
How to change the formula picture in the paper directly into the formula in word
Navicat connects Oracle
产业共融新势能,城链科技数字峰会厦门站成功举办