New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
huginn acts very slow, how can i shorten the time #2418
Comments
web: bundle exec unicorn -c config/unicorn.rb |
That are the time logged as The setting that affects the processing time the most is You can also tweak Are the clocks of your server and client in sync? How many CPU cores does the Huginn server have? With the configuration you listed it should have least 8-10 cores. If you have fewer I would reduce the amount of delayed job processes. You need one for the database, two for the |
i had js1, js2 and post agent checked for propagate immediately. webhook agent has no propagate setting. |
my huginn server has 2 cpu cores and 4g mem. as for scenarios like mine, how fast can i get my post agent request? |
I think changing |
my scenario have a webhook agent, two java script agent (with name js1 and js2) and a post agent.
i also create a request client, who send 12 or more request to webhook agent. js1 receives event from webhook agent, calculates time consumed from the time this request make, then passes to js2. js2 calculates time consumed from the time this request make, then passes to post agent.
i alse create a server to get the post request from my post agent, who can calculate the time consumed.
code of request client:
------ end ------
the result:
send time: 1542351548663, diff1 : 539, diff2 : 1110, diff : 2041
send time: 1542351548656, diff1 : 768, diff2 : 1745, diff : 3406
send time: 1542351548665, diff1 : 1498, diff2 : 2564, diff : 4549
send time: 1542351549350, diff1 : 1660, diff2 : 2934, diff : 4879
send time: 1542351549758, diff1 : 1554, diff2 : 3538, diff : 6041
send time: 1542351549927, diff1 : 2218, diff2 : 4330, diff : 7650
send time: 1542351550696, diff1 : 1821, diff2 : 4063, diff : 7423
send time: 1542351551097, diff1 : 2335, diff2 : 4825, diff : 9139
send time: 1542351551299, diff1 : 2436, diff2 : 5351, diff : 10084
send time: 1542351551929, diff1 : 2779, diff2 : 6484, diff : 11634
send time: 1542351552092, diff1 : 2980, diff2 : 6469, diff : 11949
send time: 1542351552879, diff1 : 2797, diff2 : 6567, diff : 12446
send time: 1542351553078, diff1 : 3245, diff2 : 7573, diff : 13995
send time: 1542351553534, diff1 : 3227, diff2 : 8066, diff : 15321
send time: 1542351553723, diff1 : 3749, diff2 : 8791, diff : 16610
send time: 1542351554147, diff1 : 3463, diff2 : 8497, diff : 16728
send time: 1542351554569, diff1 : 4076, diff2 : 9824, diff : 18772
send time: 1542351554986, diff1 : 4339, diff2 : 10377, diff : 19866
send time: 1542351555158, diff1 : 4462, diff2 : 10736, diff : 20218
send time: 1542351555842, diff1 : 4586, diff2 : 11078, diff : 20889
as you can see, i received my result after a very time, how can i shorten the time?
The text was updated successfully, but these errors were encountered: