arkdb / arkproxy Goto Github PK
View Code? Open in Web Editor NEW高性能、高可靠的数据库跨云中间件,完全兼容MySQL技术体系,由极数云舟出品开源
License: GNU Lesser General Public License v2.1
高性能、高可靠的数据库跨云中间件,完全兼容MySQL技术体系,由极数云舟出品开源
License: GNU Lesser General Public License v2.1
文档中只有start的操作,但是却没有找到stop的命令,是直接kill掉吗?有没有优雅一点的stop方法?
/usr/local/arkproxy/arkproxy --defaults-file=/usr/local/arkproxy/arkproxy.cnf &
[root@localhost arkproxy]# /usr/local/arkproxy/arkproxy --defaults-file=/usr/local/arkproxy/arkproxy.cnf &
[1] 18268
[root@localhost arkproxy]# 2020-09-08 10:30:21 139774839484928 [Note] /usr/local/arkproxy/arkproxy (arkproxy 20.04.23) starting as process 18268 ...
[1]+ Exit 1 /usr/local/arkproxy/arkproxy --defaults-file=/usr/local/arkproxy/arkproxy.cnf
请问,这是什么原因呢?
arkproxy version:
20.04.23
报错信息如下:
2020-12-10 1:51:51 140451613242112 [Warning] proxy heartbeat error(retry: 1): 0, Got packets out oforder
2020-12-10 1:51:51 140451613242112 [Warning] proxy heartbeat error(retry: 2): 0, Got packets out oforder
2020-12-10 1:51:51 140451613242112 [Warning] proxy heartbeat error(retry: 3): 0, Got packets out oforder
2020-12-10 1:51:51 140451613242112 [Warning] backend connection closed. host:192.168.50.49, port:3306, reconnect times...:1
请问下,这个日志报错正常吗?
咨询下
下面遇到的这个问题是否是status里面的参数超出了? 有没有哪个参数可以调整下
show proxy status;
+------------------+--------------------+--------------------+------------------+------------------+-----------+
| Connection_Count | Min_Con_Buffer_Mem | Max_Con_Buffer_Mem | Total_Packet_Mem | Total_Buffer_Mem | Total_Mem |
+------------------+--------------------+--------------------+------------------+------------------+-----------+
| 60 | 137506 | 2794665 | 84672000 | 113333230 | 198005230 |
+------------------+--------------------+--------------------+------------------+------------------+-----------+
1 row in set (0.00 sec)
2020-10-13 19:30:49 140349055181568 [Note] assemble_kill_packet: KILL CONNECTION 2105942
2020-10-13 19:30:49 140349055181568 [Note] assemble_kill_packet: KILL CONNECTION 2105942
2020-10-13 19:30:54 140349055181568 [Note] assemble_kill_packet: KILL CONNECTION 2105942
2020-10-13 19:30:54 140349055181568 [Note] assemble_kill_packet: KILL CONNECTION 2105942
2020-10-13 19:31:03 140349055181568 [Note] assemble_kill_packet: KILL CONNECTION 2105942
*** buffer overflow detected ***: /usr/local/arkproxy/bin/arkproxy terminated
*** buffer overflow detected ***: /usr/local/arkproxy/bin/arkproxy terminated
======= Backtrace: =========
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x7fa696604577]
/lib64/libc.so.6(__fortify_fail+0x37)[0x7fa696604577]
/lib64/libc.so.6(+0x1166f2)[0x7fa6966026f2]
/usr/local/arkproxy/bin/arkproxy(_Z22init_backend_conn_infoP19backend_conn_structPcS1_S1_j+0x27)[0x561f1c833467]
/lib64/libc.so.6(+0x1166f2)[0x7fa6966026f2]
/usr/local/arkproxy/bin/arkproxy(_Z25mysql_fetch_server_statusP19backend_conn_struct+0x85)[0x561f1c833555]
/usr/local/arkproxy/bin/arkproxy(_Z22init_backend_conn_infoP19backend_conn_structPcS1_S1_j+0x27)[0x561f1c833467]
/usr/local/arkproxy/bin/arkproxy(_Z19proxy_timer_checkerP3THD+0x168)[0x561f1c837de8]
/usr/local/arkproxy/bin/arkproxy(_Z25mysql_fetch_server_statusP19backend_conn_struct+0x85)[0x561f1c833555]
/usr/local/arkproxy/bin/arkproxy(command_executer+0xab)[0x561f1c837f0b]
/usr/local/arkproxy/bin/arkproxy(_Z19proxy_timer_checkerP3THD+0x168)[0x561f1c837de8]
/lib64/libpthread.so.0(+0x7ea5)[0x7fa697e21ea5]
/usr/local/arkproxy/bin/arkproxy(command_executer+0xab)[0x561f1c837f0b]
/lib64/libc.so.6(clone+0x6d)[0x7fa6965ea8dd]
======= Memory map: ========
/lib64/libpthread.so.0(+0x7ea5)[0x7fa697e21ea5]
561f1c285000-561f1d0d1000 r-xp 00000000 fd:01 1319346 /usr/local/arkproxy/bin/arkproxy
561f1d2d0000-561f1d3bd000 r--p 00e4b000 fd:01 1319346 /usr/local/arkproxy/bin/arkproxy
561f1d3bd000-561f1d461000 rw-p 00f38000 fd:01 1319346 /usr/local/arkproxy/bin/arkproxy
561f1d461000-561f1dc9e000 rw-p 00000000 00:00 0
561f1ef99000-561f202fe000 rw-p 00000000 00:00 0 [heap]
7fa581a9a000-7fa581a9b000 ---p 00000000 00:00 0
版本:v20.06.30
参数配置:
proxy_digest_trace = ON
proxy_sql_trace = ON
想查看业务访问语句的digest信息。但是配置了
proxy_digest_trace = ON
proxy_sql_trace = ON
这两个参数,却不生效,日志也没有打印出来,这就和文档中的配置描述有出入
文档对于proxy_sql_trace是这样描述的:
ArkProxy的sql trace是否开启开关,默认是true,如果开启了,则会将所有的 SQL访问都记下来,存储到proxy_config_host:proxy_config_port设置的目标数据库中,可能会对中间层的性能有影响。依赖proxy_digest_trace,只有proxy_digest_trace打开了, proxy_sql_trace打开之后才能起作用。
通过参数配置arkproxy.cnf文件,可以查看到业务访问语句的digest信息
一个数据库实例下,有多个数据库,一个数据库对应一个项目,每个项目的账号看到的数据库都是不一样的,
这种该如何实现呢?
-- Configuring done
CMake Error at cmake/libutils.cmake:108 (ADD_LIBRARY):
Cannot find source file:
debug_sync_service.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
Call Stack (most recent call first):
libservices/CMakeLists.txt:36 (ADD_CONVENIENCE_LIBRARY)
CMake Error at sql/CMakeLists.txt:173 (ADD_LIBRARY):
Cannot find source file:
debug_sync.cc
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at cmake/libutils.cmake:108 (ADD_LIBRARY):
No SOURCES given to target: mysqlservices
Call Stack (most recent call first):
libservices/CMakeLists.txt:36 (ADD_CONVENIENCE_LIBRARY)
CMake Error at sql/CMakeLists.txt:173 (ADD_LIBRARY):
No SOURCES given to target: sql
CMake Generate step failed. Build files cannot be regenerated correctly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.