Title: [v2] discovering if user is actually using code-server (for idle check - can do in v1) · Issue #1050 · coder/code-server · GitHub
Open Graph Title: [v2] discovering if user is actually using code-server (for idle check - can do in v1) · Issue #1050 · coder/code-server
X Title: [v2] discovering if user is actually using code-server (for idle check - can do in v1) · Issue #1050 · coder/code-server
Description: Environment: A docker swarm running code-server development environments for multiple users simultaneously (teaching course). Previously code-server v1, will log to files in ".cache/code-server/logs" added a line every time the users bro...
Open Graph Description: Environment: A docker swarm running code-server development environments for multiple users simultaneously (teaching course). Previously code-server v1, will log to files in ".cache/code-server/log...
X Description: Environment: A docker swarm running code-server development environments for multiple users simultaneously (teaching course). Previously code-server v1, will log to files in ".cache/code-serve...
Opengraph URL: https://github.com/coder/code-server/issues/1050
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[v2] discovering if user is actually using code-server (for idle check - can do in v1)","articleBody":"**Environment**: A docker swarm running code-server development environments for multiple users simultaneously (teaching course).\r\n\r\n**Previously**\r\n\r\ncode-server v1, will log to files in \".cache/code-server/logs\" added\r\na line every time the users browser contacts the running code-server.\r\nThis happens at least every 5 minutes (on the dot), while the user has\r\na open browser pointing to \"code-server\".\r\n\r\nThis let me implement a check looking at when these log files last\r\nupdated to determine when the user last had a browser open to\r\ncode-server. This check could then shutdown the docker container\r\nfor users that have not used there code-server for some time.\r\n\r\nThat is we have implemented idle timeout for the docker instances.\r\nThis is vital for the system to keep things running smoothly for\r\nthe multi-user docker swarm.\r\n\r\n_So far I have found no equivalent to implement idle timeout in\r\ncode-server v2._\r\n\r\n**Suggestion.**\r\n\r\nProvide a 'heartbeat' option/file, that is 'touched' (does not have to\r\nwrite anything but it could, just have the file timestamp updated),\r\nwhenever \"code-server\" is contacted by the users browser.\r\n\r\nThis will make idle checking a lot easier too as it not need to search\r\nfor the latest log file, just the one heartbeat file.\r\n\r\nHowever a log file file (as in v1) will be fine too.\r\n\r\nOr prehaps you have some other suggestion.\r\n\r\nPS: Code-server v2 does generate logs whenever the user opens a file. The log is for it attempting to find a 'git' repository for the file, and failing.\r\nBut it is not really a good idle/in-use indicator.\r\n\r\n\r\n","author":{"url":"https://github.com/antofthy","@type":"Person","name":"antofthy"},"datePublished":"2019-10-04T01:26:00Z","url":"https://github.com/coder/code-server/issues/1050"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7a801d1f-e92c-7c5e-8224-41c51fd84927 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9AA0:296654:25FEC1A:32AFC11:6B01A5E6 |
| html-safe-nonce | 3a9667bdeaee3249dd9f4c914a340e0510897a2d274db3de029d081526c49a8d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUEwOjI5NjY1NDoyNUZFQzFBOjMyQUZDMTE6NkIwMUE1RTYiLCJ2aXNpdG9yX2lkIjoiODA2MDU5Mzk3NDk0MDkwMjg4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4c6df00a8b572964d24056726ee47db558a4bc7522faa2326573df8bd6df546b |
| hovercard-subject-tag | issue:502376761 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/code-server/1050/issue_layout |
| twitter:image | https://opengraph.githubassets.com/52eee4773f1fd045fe61786658ba794617d8643143fe8d221687185ca5c55b96/coder/code-server/issues/1050 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/52eee4773f1fd045fe61786658ba794617d8643143fe8d221687185ca5c55b96/coder/code-server/issues/1050 |
| og:image:alt | Environment: A docker swarm running code-server development environments for multiple users simultaneously (teaching course). Previously code-server v1, will log to files in ".cache/code-server/log... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | antofthy |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/code-server git https://github.com/coder/code-server.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 172953845 |
| octolytics-dimension-repository_nwo | coder/code-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 172953845 |
| octolytics-dimension-repository_network_root_nwo | coder/code-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width