提示这样的错误,
2022-10-10 18:40:23FC Invoke End RequestId: 062a219a-6651-4826-a9ea-4fd8509fa9d5, Error: Invocation canceled by client (duration: 23799ms, maxMemoryUsage: 0.00MB) 2022-10-10 18:40:28FC Invoke End RequestId: 9eaffc76-24d0-4f4d-9162-4a3ce50d1dbb, Error: Invocation canceled by client (duration: 23816ms, maxMemoryUsage: 0.00MB) 2022-10-10 18:40:34FC Invoke End RequestId: a7d09396-fe30-42e1-a84f-140c4793fdeb, Error: Invocation canceled by client (duration: 23476ms, maxMemoryUsage: 0.00MB) 2022-10-10 18:40:34FC Invoke End RequestId: f47e7576-5c1d-4168-80ba-053512ebd1df, Error: Invocation canceled by client (duration: 22759ms, maxMemoryUsage: 0.00MB) 2022-10-10 18:40:34FC Invoke End RequestId: 3bc89291-ef63-42b6-a270-f3dce69c5ea1, Error: Invocation canceled by client (duration: 23746ms, maxMemoryUsage: 0.00MB) 2022-10-10 18:40:35FC Invoke End RequestId: efc2c984-f0b9-408f-bcf8-1c98090bd330, Error: Invocation canceled by client (duration: 23751ms, maxMemoryUsage: 0.00MB) 2022-10-10 18:40:36FC Invoke End RequestId: 99e19796-3805-4c4e-b5e2-d589a19128b0, Error: Invocation canceled by client (duration: 23737ms, maxMemoryUsage: 0.00MB) 2022-10-10 18:40:50FC Invoke End RequestId: 8eeae978-f0c5-41b4-a83a-f6bc883942ad, Error: Function timed out after 60 seconds (maxMemoryUsage: 184.17MB) 2022-10-10 18:41:03FC Invoke End RequestId: 08bfb649-1ed2-4056-86a9-3cd168a1bb63, Error: Function timed out after 60 seconds (maxMemoryUsage: 184.17MB) 2022-10-10 18:41:08FC Invoke End RequestId: 39ee35dc-7aa8-43e0-8ea7-6b7311d82a9b, Error: Function timed out after 60 seconds (maxMemoryUsage: 184.17MB) 2022-10-10 18:41:08FC Invoke End RequestId: a804bf20-58f6-4f72-9ae7-6e5059b647bf, Error: Function timed out after 60 seconds (maxMemoryUsage: 184.17MB) 2022-10-10 18:41:08FC Invoke End RequestId: 24ed9154-df4c-497e-9ec2-bd55a52cabf2, Error: Function timed out after 60 seconds (maxMemoryUsage: 184.17MB) 2022-10-10 18:41:09FC Invoke End RequestId: 61ed1c99-480c-4663-86be-1d0ea9ab00e1, Error: Function timed out after 60 seconds (maxMemoryUsage: 184.17MB) 2022-10-10 18:41:09FC Invoke End RequestId: 35c77369-bd88-411f-8593-3a9d085f6260, Error: Function timed out after 60 seconds (maxMemoryUsage: 184.17MB) 2022-10-10 18:41:09FC Invoke End RequestId: 9bf1974e-b13f-4f62-a4b6-54b5ee34466a, Error: Function timed out after 60 seconds (maxMemoryUsage: 184.17MB) 2022-10-10 18:41:09FC Invoke End RequestId: 507064b7-8d30-45fc-af20-dea931ae2135, Error: Function timed out after 60 seconds (maxMemoryUsage: 184.17MB) 2022-10-10 18:41:09FC Invoke End RequestId: 712f1cde-9db7-4d46-b343-f06aa5db5bfb, Error: Function timed out after 60 seconds (maxMemoryUsage: 184.17MB) 2022-10-10 18:41:10FC Invoke End RequestId: 5887b0c2-6653-4d83-99b3-28019f573aed, Error: Function timed out after 60 seconds (maxMemoryUsage: 184.17MB) 2022-10-10 18:41:10FC Invoke End RequestId: 304582d0-46f7-437a-a7dc-42ee8bd2c3ea, Error: Function timed out after 60 seconds (maxMemoryUsage: 184.17MB) 2022-10-10 18:41:10FC Invoke End RequestId: 5e960134-3cce-4677-88ec-cef67abac698, Error: Function timed out after 60 seconds (maxMemoryUsage: 184.17MB)
这里的内存cpu资源使用量明显过高,单实例设置的并发度过高了,任务处理不过来就导致处理变慢然后超时a可以看下之前正常调用时并发数和占用的CPU、内存是多少,设置适当降低的并发数也可以重建个相同的测试函数参考这个链接用S工具进行压测看看应该调多少合适 https://docs.serverless-devs.com/fc/command/stress
此答案来自钉钉群“阿里函数计算官网"
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。