Replies: 1 comment 1 reply
-
I'm not aware of anyone that uses these any more. They may have been part of the developer workflow for folks that are no longer on the team, or maybe some folks are still using them but if so it's not advertised. You're welcome to use them if you want and they work for you, but I wouldn't read too much into the performance or optimization of whatever they run or build. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found two scripts, 'dev-agent.sh' and 'dev-docker-agent.sh', in the /scripts directory. Based on their content, it seems that they compile /cmd/agent/main.go to produce a dedicated binary for the agent, k3s-agent. Compared to /cmd/server/main.go, it appears to have fewer unnecessary components for the agent. In theory, an agent started this way should use significantly less memory. However, after checking the memory composition with the pmap command, I noticed that the static memory of the .text segment has not changed much. I would like to know the true purpose of these two scripts, 'dev-agent.sh' and 'dev-docker-agent.sh'?
Beta Was this translation helpful? Give feedback.
All reactions