is there a way to control Redshift external function parallelism?

0

I have an external function in redshift that invocates a lambda function. The lambda functions hits another service that has concurrency limits, therefore I want to be able to limit the number of concurrent lambda functions. There doesn't seem to be any documentation on how Redshift decides how many lambda functions to invocate and how many records to submit to each invocation.

I see that you can set the max records/payload, but I have seen that the external function will create many invocations with less than that max number.

Is there any way to set the max number of concurrent lambda invocations for a redshift external function? If not, is there consistent logic for the number of invocations created given the number of input records?

질문됨 7달 전235회 조회
2개 답변
1

Hello there, the concurrent lambda invocations depend upon the cluster configuration that you have in place (specifically the number of slices on the cluster). Slice is a unit of parallel computing in Redshift and hence when the query is submitted, each slice will work in parallel to make concurrent calls to the lambda.

The below documentation’s provides more details

https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_EXTERNAL_FUNCTION.html#r_CREATE_FUNCTION-usage-notes

https://aws.amazon.com/blogs/big-data/accessing-external-components-using-amazon-redshift-lambda-udfs/

There is no publicly documented configuration parameter that can set the max number of concurrent lambda invocations. I would recommend you to create a support case with Redshift service with your cluster details and Redshift team can possibly look at tweaking any internal configurations that can help with this scenario.

AWS
지원 엔지니어
답변함 7달 전
0

Hi there,

Thank you for posting the question and the detailed explanation. To answer your question, a screen-share session would be needed and will require details that are non-public information. Can you please open a support case with AWS using the following link and we will be happy to help you.

Thank you!

AWS
지원 엔지니어
답변함 7달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠