导入一个3G多数据,dn的pod内存跑满一段时间后dn pod会重启,我已经dn把内存从4G提到12G还一样。是哪里需要调节? Exec lifecycle hook ([/tools/xstore/current/venv/bin/python3 /tools/xstore/current/cli.py engine shutdown]) for Container "engine" in Pod "polardb-x-qsk2-dn-0-cand-1_test-polardbx(9d24ba7f-8343-4140-bcf5-22a86ec8a4b5)" failed - error: command '/tools/xstore/current/venv/bin/python3 /tools/xstore/current/cli.py engine shutdown' exited with 1: mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/data/mysql/run/mysql.sock' (2)' Check that mysqld is running and that the socket: '/data/mysql/run/mysql.sock' exists! /tools/xstore/current/venv/lib64/python3.6/site-packages/pymysql/_auth.py:8: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release. from cryptography.hazmat.backends import default_backend Traceback (most recent call last): File "/tools/xstore/current/cli.py", line 21, in cli.run() File "/tools/xstore/c999c6a/cli/init.py", line 38, in run root_group() File "/tools/xstore/current/venv/lib64/python3.6/site-packages/click/core.py", line 829, in call return self.main(*args, **kwargs) File "/tools/xstore/current/venv/lib64/python3.6/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/tools/xstore/current/venv/lib64/python3.6/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/tools/xstore/current/venv/lib64/python3.6/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/tools/xstore/current/venv/lib64/python3.6/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/tools/xstore/current/venv/lib64/python3.6/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "/tools/xstore/c999c6a/cli/engine.py", line 81, in shutdown global_mgr.engine().shutdown() File "/tools/xstore/c999c6a/core/engine/engine.py", line 333, in shutdown cmd=convention.SHELL_CMD['SHUTDOWN_MYSQL']("--socket=" + os.path.join(self.path_run, 'mysql.sock'))) File "/tools/xstore/c999c6a/core/engine/engine.py", line 323, in exec_cmd raise Exception("ErrorCode = %d, Failed to exec cmd %s" % (ret, cmd)) Exception: ErrorCode = 1, Failed to exec cmd ['mysqladmin', 'shutdown', '--socket=/data/mysql/run/mysql.sock'] , message: "\amysqladmin: connect to server at 'localhost' failed\nerror: 'Can't connect to local MySQL server through socket '/data/mysql/run/mysql.sock' (2)'\nCheck that mysqld is running and that the socket: '/data/mysql/run/mysql.sock' exists!\n/tools/xstore/current/venv/lib64/python3.6/site-packages/pymysql/_auth.py:8: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.\n from cryptography.hazmat.backends import default_backend\nTraceback (most recent call last):\n File "/tools/xstore/current/cli.py", line 21, in \n cli.run()\n File "/tools/xstore/c999c6a/cli/init.py", line 38, in run\n root_group()\n File "/tools/xstore/current/venv/lib64/python3.6/site-packages/click/core.py", line 829, in call\n return self.main(*args, **kwargs)\n File "/tools/xstore/current/venv/lib64/python3.6/site-packages/click/core.py", line 782, in main\n rv = self.invoke(ctx)\n File "/tools/xstore/current/venv/lib64/python3.6/site-packages/click/core.py", line 1259, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n File "/tools/xstore/current/venv/lib64/python3.6/site-packages/click/core.py", line 1259, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n File "/tools/xstore/current/venv/lib64/python3.6/site-packages/click/core.py", line 1066, in invoke\n return ctx.invoke(self.callback, **ctx.params)\n File "/tools/xstore/current/venv/lib64/python3.6/site-packages/click/core.py", line 610, in invoke\n return callback(*args, **kwargs)\n File "/tools/xstore/c999c6a/cli/engine.py", line 81, in shutdown\n global_mgr.engine().shutdown()\n File "/tools/xstore/c999c6a/core/engine/engine.py", line 333, in shutdown\n cmd=convention.SHELL_CMD['SHUTDOWN_MYSQL']("--socket=" + os.path.join(self.path_run, 'mysql.sock')))\n File "/tools/xstore/c999c6a/core/engine/engine.py", line 323, in exec_cmd\n raise Exception("ErrorCode = %d, Failed to exec cmd %s" % (ret, cmd))\nException: ErrorCode = 1, Failed to exec cmd ['mysqladmin', 'shutdown', '--socket=/data/mysql/run/mysql.sock']\n"
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
PolarDB 分布式版 (PolarDB for Xscale,简称“PolarDB-X”) 采用 Shared-nothing 与存储计算分离架构,支持水平扩展、分布式事务、混合负载等能力,100%兼容MySQL。 2021年开源,开源历程及更多信息访问:OpenPolarDB.com/about