Closed g3rzi closed 4 years ago
The default sleep time is 30 seconds before the agent checks back in. You can change that with set sleep 10s
so that it calls back every 10 seconds instead.
You can also use the -sleep
command line argument when start the agent.
@g3rzi Were you able to change the sleep time?
Yes, it looks better but let me do one more test and I will update here tomorrow
It seems to work much better, thanks.
I will keep work with this setup, thanks
Prerequisite
Environment Data
dev
branch)dev
/home/jiren/go
/usr/local/go
Expected Behavior
Fast output on server (maximum 4 seconds)
Actual Behavior
On local server with agent that runs on the same machine it takes more than 26 seconds for the server to get response from the agent. I am not sure why, is it because of HTTP/2? I shouldn't take so much time.
I don't know what is the problem exactly but there couple of options to check where it take most of the time:
Steps to Reproduce Behavior
sudo -s
root# ./merlinServer-Linux-x64 -p 1338
root# ./merlinAgent-Linux-x64 -url https://127.0.0.1:1338
Run:
Misc Information
The agent is connected with HTTP/2 (h2):
+--------------------------------------+-------------+------+--------+-------------+--------+ | AGENT GUID | PLATFORM | USER | HOST | TRANSPORT | STATUS | +--------------------------------------+-------------+------+--------+-------------+--------+ | 40295678-2713-40ef-b6c7-9b0da1d4e84c | linux/amd64 | root | ubuntu | HTTP/2 (h2) | Active | +--------------------------------------+-------------+------+--------+-------------+--------+