You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log.warn("WARNING: Did not found configuration, using fallback configuration!");
132
+
}
123
133
124
134
setDefaultProperties(app);
125
135
@@ -152,7 +162,6 @@ public void init() {
152
162
log.warn("WARNING: Invalid configuration detected: same-site-cookie policy is set to None, but secure-cookies are not enabled. Secure cookies must be enabled when using None as same-site-cookie policy ");
153
163
}
154
164
155
-
156
165
if (environment.getProperty("proxy.store-mode", "").equalsIgnoreCase("Redis")) {
157
166
if (!environment.getProperty("spring.session.store-type", "").equalsIgnoreCase("redis")) {
158
167
// running in HA mode, but not using Redis sessions
@@ -162,6 +171,24 @@ public void init() {
162
171
// running in HA mode, but proxies are removed when shutting down
163
172
log.warn("WARNING: Invalid configuration detected: store-mode is set to Redis (i.e. High-Availability mode), but proxies are stopped at shutdown of server!");
164
173
}
174
+
if (environment.getProperty( PROPERTY_RECOVER_RUNNING_PROXIES, Boolean.class, false) ||
log.warn("WARNING: Invalid configuration detected: cannot use store-mode with Redis (i.e. High-Availability mode) and app recovery at the same time. Disable app recovery!");
177
+
}
178
+
}
179
+
180
+
if (environment.getProperty("spring.session.store-type", "").equalsIgnoreCase("redis")) {
181
+
if (!environment.getProperty("proxy.store-mode", "").equalsIgnoreCase("Redis")) {
182
+
// using Redis sessions, but not running in HA mode -> this does not make sense
183
+
// even with one replica, the HA mode should be used in order for the server to survive restarts (which is the reason Redis sessions are used)
184
+
log.warn("WARNING: Invalid configuration detected: user sessions are stored in Redis, but store-more is not set to Redis. Change store-mode so that app sessions are stored in Redis!");
185
+
}
186
+
if (environment.getProperty( PROPERTY_RECOVER_RUNNING_PROXIES, Boolean.class, false) ||
// using Redis sessions together with app recovery -> this does not make sense
189
+
// if already using Redis for sessions there is no reason to not store app sessions
190
+
log.warn("WARNING: Invalid configuration detected: user sessions are stored in Redis and App Recovery is enabled. Instead of using App Recovery, change store-mode so that app sessions are stored in Redis!");
@ExampleObject(name = "Stopping", description = "Stop a proxy.", value = "{\"desiredStatus\": \"Stopping\"}"),
84
-
@ExampleObject(name = "Pausing", description = "Pause a proxy.", value = "{\"desiredStatus\": \"Pausing\"}"),
85
-
@ExampleObject(name = "Resuming", description = "Resume a proxy.", value = "{\"desiredStatus\": \"Resuming\"}"),
86
-
@ExampleObject(name = "Resuming with parameters", description = "Resume a proxy.", value = "{\"desiredStatus\": \"Resuming\", \"parameters\":{\"resources\":\"2 CPU cores - 8G RAM\",\"other_parameter\":\"example\"}}")
83
+
@ExampleObject(name = "Stopping", description = "Stop a proxy.", value = "{\"desiredState\": \"Stopping\"}"),
84
+
@ExampleObject(name = "Pausing", description = "Pause a proxy.", value = "{\"desiredState\": \"Pausing\"}"),
85
+
@ExampleObject(name = "Resuming", description = "Resume a proxy.", value = "{\"desiredState\": \"Resuming\"}"),
86
+
@ExampleObject(name = "Resuming with parameters", description = "Resume a proxy.", value = "{\"desiredState\": \"Resuming\", \"parameters\":{\"resources\":\"2 CPU cores - 8G RAM\",\"other_parameter\":\"example\"}}")
87
87
}
88
88
)
89
89
)
@@ -140,15 +140,12 @@ public ResponseEntity<ApiResponse<Void>> changeProxyStatus(@PathVariable String
0 commit comments