开发者社区 > PolarDB开源 > PolarDB 分布式版 > 正文

导入一个3G多数据,dn的pod内存跑满一段时间后dn pod会重启,我已经dn把内存从4G提到12

导入一个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"

展开
收起
爱喝咖啡嘿 2022-12-19 17:48:38 282 0
1 条回答
写回答
取消 提交回答
  • 使用什么工具导数据的呢,调低并发量试试——此答案整理自钉群“阿里云 PolarDB-X 开源交流群”

    2022-12-21 12:49:05
    赞同 展开评论 打赏

PolarDB 分布式版 (PolarDB for Xscale,简称“PolarDB-X”) 是阿里云自主设计研发的高性能云原生分布式数据库产品,为用户提供高吞吐、大存储、低延时、易扩展和超高可用的云时代数据库服务。

相关电子书

更多
内存取证与IaaS云平台恶意行 为的安全监控 立即下载
云服务器ECS内存增强型实例re6全新发布 立即下载
低代码开发师(初级)实战教程 立即下载