amazon web services - Throttling while registering activities in Simple Work Flow -
we have started experience failures when our processes start during registration of activities. problem happening in genericactivityworker.registeractivitytypes.
the exception generate is:
caused by: amazonserviceexception: status code: 400, aws service: amazonsimpleworkflow, aws request id: 78726c24-47ee-11e3-8b49-534d57dc0b7f, aws error code: throttlingexception, aws error message: rate exceeded @ com.amazonaws.http.amazonhttpclient.handleerrorresponse(amazonhttpclient.java:686) @ com.amazonaws.http.amazonhttpclient.executehelper(amazonhttpclient.java:350) @ com.amazonaws.http.amazonhttpclient.execute(amazonhttpclient.java:202) @ com.amazonaws.services.simpleworkflow.amazonsimpleworkflowclient.invoke(amazonsimpleworkflowclient.java:3061) @ com.amazonaws.services.simpleworkflow.amazonsimpleworkflowclient.registeractivitytype(amazonsimpleworkflowclient.java:2231) @ com.amazonaws.services.simpleworkflow.flow.worker.genericactivityworker.registeractivitytype(genericactivityworker.java:153) @ com.amazonaws.services.simpleworkflow.flow.worker.genericactivityworker.registeractivitytypes(genericactivityworker.java:118) @ com.amazonaws.services.simpleworkflow.flow.worker.genericactivityworker.registertypestopoll(genericactivityworker.java:105) @ com.amazonaws.services.simpleworkflow.flow.worker.genericworker.start(genericworker.java:367) @ com.amazonaws.services.simpleworkflow.flow.activityworker.start(activityworker.java:248) @ com.fluid.retail.workflows.defaultworkflowhost.start(defaultworkflowhost.java:226) ... 5 more
the activityworker in question has 5 activity implementation classes associated it, , think throttling occurring because internal flow framework code looping on activity types register them without delay in between them.
because code internal framework, can't add sleep() calls prevent being throttled.
any ideas appreciated.
are sure happening during registering ur activities? or happening during scheduling activities? issue if try run workflow schedule many activities fast. @ point have 2 options. 1. try , make activites sequential , make them wait on previous one. 2. contact aws increase accounts rate.
Comments
Post a Comment