openwhisk icon indicating copy to clipboard operation
openwhisk copied to clipboard

The json parameter of the function has a limit of 1M, how to adjust this limit

Open crazyzcyoou opened this issue 4 years ago • 4 comments

The json parameter of the function has a limit of 1M, how to adjust this limit

crazyzcyoou avatar Mar 03 '22 03:03 crazyzcyoou

Does anyone have any help?

crazyzcyoou avatar Mar 23 '22 02:03 crazyzcyoou

You can configure that with this option. It's a cluster-wide config. https://github.com/apache/openwhisk/blob/master/common/scala/src/main/resources/application.conf#L429

Since it is also related to the maximum bytes the Kafka can receive, you need to increase it as well. Generally, it is automatically handled by the system when creating the topic. https://github.com/apache/openwhisk/blob/master/common/scala/src/main/resources/application.conf#L204

But if you already created the topic, I think you may need to manually alter your Kafka topic configurations accordingly.

style95 avatar Mar 23 '22 05:03 style95

thanks

crazyzcyoou avatar Apr 18 '22 04:04 crazyzcyoou

closing as answered

style95 avatar Apr 18 '22 05:04 style95