Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持全局cancel协议、全局show processlist,全局kill #789

Open
jd-zhang opened this issue Jul 1, 2022 · 2 comments
Open

支持全局cancel协议、全局show processlist,全局kill #789

jd-zhang opened this issue Jul 1, 2022 · 2 comments

Comments

@jd-zhang
Copy link
Contributor

jd-zhang commented Jul 1, 2022

*Issue migrated from trac ticket # 871 www.kunlunbase.com *

component: computing nodes | priority: major

2022-07-01 19:07:21: smith created the issue


abc=# show processlist;
WARNING:  Compute node (6) unreachable
WARNING:  Compute node (7) unreachable
   Pid    | User |      Host       | db  | State  |        Query         | Wait_event | xact_sec | query_sec | backend_sec | state_change
----------+------+-----------------+-----+--------+----------------------+------------+----------+-----------+-------------+--------------
 33554435 | abc  | 127.0.0.1:37468 | abc | active | show processlist;    |            | 0.001078 | 0.001081  | 19.942973   | 0.00108
 37748755 | test | 127.0.0.1:42688 | abc | active | select pg_sleep(10); | PgSleep    | 0.909864 | 0.909871  | 8.103594    | 0.909871
(2 rows)

-- mysql的kill命令
abc=# kill 37748755;
KILL QUERY
abc=#

-- cancel协议
abc=# select pg_sleep(10);
^CCancel request sent
ERROR:  canceling statement due to user request
abc=#

测试要点:在多个计算节点加一个ha_proxy进行测试。

@jd-zhang
Copy link
Contributor Author

jd-zhang commented Jul 1, 2022

2022-07-01 19:07:29: smith changed owner from david to smith

@jd-zhang
Copy link
Contributor Author

jd-zhang commented Jul 1, 2022

2022-07-01 19:07:29: smith changed status from new to accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant