Repository navigation
fix(gcp): keep terminal and Guacamole sessions open for 8 hours - #2984
Merged
Merged
Conversation
The load balancer closes a WebSocket at the backend timeout, also when the session is active. At 3600 seconds, every RDP and SSH session through Guacamole ended after one hour. Set the guacamole-client backend timeout to 28800 seconds in the GCP capacity profiles.
Guacamole ended a session after 60 minutes without REST activity. Set API_SESSION_TIMEOUT to 480 minutes on guacamole-client so that it matches the 8-hour load balancer timeout.
The platform terminal WebSocket goes through the portal-web backend, which closed it after 3600 seconds. Set portal_backend_seconds to 28800 to match guacamole-client.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Three limits ended remote sessions:
api-session-timeoutdefault).Change
shifter/installation/capacity_profiles_gcp.py: setportal_backend_secondsandguacamole_backend_secondsto 28800 (8 hours) for all GCP capacity profiles. The chart schema permits a maximum of 86400.platform/charts/shifter/templates/guacamole-client-deployment.yaml: setAPI_SESSION_TIMEOUTto 480 minutes. The image enablesenable-environment-properties, so Guacamole reads this variable.Verification
shifter/installation/tests/test_capacity_profiles_gcp.py,scripts/gcp/tests/test_check_event_capacity_drift.py, and the Guacamole test inplatform/charts/shifter/tests/test_chart_contract.pypass.timeoutSec28800 on both Google backend services. Its guacamole-client logs "Sessions will expire after 480 minutes of inactivity".