-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Provide workspace resource information #10836
Conversation
b8bfb89
to
3df4043
Compare
} | ||
|
||
func startInfoService(socketDir string) (func(), error) { | ||
socketFN := filepath.Join(socketDir, "info.sock") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we have to set the rps limit per the workspace(ideal) because the user can touch this uds, and attack to ws-daemon. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, one of the reasons it is still in draft 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
a1232a0
to
e745ae1
Compare
/werft run with-preview 👍 started the job as gitpod-build-fo-ws-info.32 |
@Furisto It looks good but we should do in the backward compatible way, so please keep old logic as a fallback for sometime in supervisor. We are not going to rollback supervisor if a new cluster deployment goes wrong. |
Hey @gitpod-io/engineering-webapp @gitpod-io/engineering-self-hosted could you please a look at this? We need it for the deployment of gen50 next week. |
is today ;) |
/hold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Took a while to get a workspace, but... works nicely! 🎉
/werft run 👍 started the job as gitpod-build-fo-ws-info.39 |
@mrsimonemms One of the installer tests failed because the order of the elements in the list did not match up. I do not think the order of the elements in the list is important for correctness so I fixed the test by ensuring that the elements match up before the comparison and added the commit to this PR. If I am mistaken let me know. |
/unhold |
@gitpod-io/engineering-ide Can you take a look and approve please 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Adds a workspace info service to the workspace, that allows the retrieval of information about the current workspace. For now resource limits and usage are supported. Supports systems with cgroup v1 and v2.
The service itself only exposes a single (ratelimited) operation that is then delegated to IWS. This indirection was introduced to limit the access of user code to IWS.
In addition I introduced a (minimal) cgroup library as discussed in #10043 in order to support cgroup v1 and v2. Moving other code in e.g. ws-daemon over to use this library is outside of scope for this PR.
Related Issue(s)
Fixes #10839 and #10043
How to test
Release Notes
Werft options: