Hello Everyone, i have a map/reduce script which i...
# general
a
Hello Everyone, i have a map/reduce script which is taking time to execute. It has only reduce function and summarize( and getInputData too). What I saw, that there is sometime gap between these stages(10min time between getInputData and reduce). Dors anybody have knowledge of this, why there is time gaps? @channel
b
Monitoring SuiteCloud Processors Performance can be used to monitor your suitecloud processors
basics are that the server running your scripts has a finite number of threads that is shared among multiple accounts
your account can use a certain amount of threads determined by your suitecloud processor count
if there are other accounts using up all the threads, or if your account has no more suitecloud processors, your scripts will wait
a
Does the priority of the script is compared to only my account scripts or to the other account scripts as well?
@battk
b
its only among your account
a
Then how can I reduced those time gaps.
b
there are 2 ways your script can be delayed
have you identified which one it is
a
I don't have the APM app. I need to install it first
By the way , what are those 2 ways
a
Only 1 script is running
At a time
So it has to be the first one according to u. Right?
b
you would want to confirm that by looking at the wait time and processor utilization information provided by the bundle
a
message has been deleted
message has been deleted
I can see wait time is too long for each stage
@battk
How to reduce this
b
your average looks to be 2 minutes
which isnt horrible
but you shouldnt have any queue use if you only have a map/reduce script running in your account
a
yesterday It was 10 min, today its 2 min
Yes I'm running only a map/reduce script at a time.
b
the data says otherwise
only scheduled scripts use queues, so it looks like there is also a scheduled script running
a
i think that 2 minutes is caused by the map stages. may i know how your payload looks like?if you have 3 key in your payload then the map stages will be 3 times and so on
the map function will map the argument taken
a
But sometimes its taking 2 mins but sometimes more than 15 mins
@Andrian Davinta
Also, do you know why date created and start date is different (more than a min gap)
message has been deleted
a
Scheduled script and map/reduce script when started will have to wait a min or more. It is listed in netsuite help. Idk the reason of it
If your map function accept payload then ofc it will query the function. Thats why it took times
a
But that time is not static, I mean sometimes under 2 min and sometimes more than 15 min, how's that justifiable