java/com.sap.sailing.landscape/resources/stringmessages/SailingLandscape_StringMessages.properties
... ...
@@ -15,4 +15,6 @@ FinishedToArchiveReplicaSetIntoBody=Archiving a replica set to {0} has finished.
15 15
FinishedToArchiveReplicaSetSubject=Archiving replica set {0} finished
16 16
FinishedToArchiveReplicaSetBody=Archiving replica set {0} has finished.\nIf you requested so, the original replica set has been removed.\n\nYou are receiving this mail because you have administrative permissions for {0}.\nRemove those permissions at <https://sapsailing.com/gwt/AdminConsole.html#UserManagementPlace:> if you do not like to receive these messages anymore.
17 17
NewArchiveCandidateReadyForSpotChecksAndRotationSubject=The new {0} candidate is ready for spot checks
18
-NewArchiveCandidateReadyForSpotChecksAndRotationBody=We''ve run the following checks:\n{3}.\nThe new {0} candidate is ready for spot checks and, if OK, rotation to become the new production {0}.\nRun your spot checks at <https://{1}/gwt/Home.html#EventsPlace:> and compare to <https://{2}/gwt/Home.html#EventsPlace:>.\nStart the rotation to the new production server at <{4}/gwt/AdminConsole.html#LandscapeManagementPlace:> after successful checks.
... ...
\ No newline at end of file
0
+NewArchiveCandidateReadyForSpotChecksAndRotationBody=We''ve run the following checks:\n{3}.\nThe new {0} candidate is ready for spot checks and, if OK, rotation to become the new production {0}.\nRun your spot checks at <https://{1}/gwt/Home.html#EventsPlace:> and compare to <https://{2}/gwt/Home.html#EventsPlace:>.\nStart the rotation to the new production server at <{4}/gwt/AdminConsole.html#LandscapeManagementPlace:> after successful checks.
1
+NewArchiveCandidateFailedSubject=Check {1} failed during {0} startup
2
+NewArchiveCandidateFailedBody=The check "{1}" failed with message "{2}" while starting up {0}. Please check the landscape and fix manually.
... ...
\ No newline at end of file
java/com.sap.sailing.landscape/resources/stringmessages/SailingLandscape_StringMessages_de.properties
... ...
@@ -15,4 +15,6 @@ FinishedToArchiveReplicaSetIntoBody=Die Archivierung des Anwendungs-Clusters nac
15 15
FinishedToArchiveReplicaSetSubject=Archivierung des Anwendungs-Clusters {0} beendet
16 16
FinishedToArchiveReplicaSetBody=Die Archivierung des Anwendungs-Clusters {0} ist beendet.\nFalls angefragt, wurde das Original Anwendungs-Cluster entfernt.\n\nDiese Nachricht wurde versandt, weil Du über administrative Rechte für {0} verfügst.\nUm das zu ändern, besuche <https://sapsailing.com/gwt/AdminConsole.html#UserManagementPlace:>, um diese Rechte für Dein Benutzerkonto zu entfernen.
17 17
NewArchiveCandidateReadyForSpotChecksAndRotationSubject=Der neue {0} Kandidat ist bereit für einen stichprobenartigen Vergleich
18
-NewArchiveCandidateReadyForSpotChecksAndRotationBody=Es wurden die folgenden Prüfungen durchgeführt:\n{3}.\nDer neue {0} Kandidat ist bereit für einen stichprobenartigen Vergleich\nund, falls OK, Rotation zum neuen Produktiv-Server für {0}.\nStichprobenartiger Vergleich unter https://{1}/gwt/Home.html#EventsPlace: und https://{2}/gwt/Home.html#EventsPlace:.\nRotation nach erfolgreichen Prüfungen unter <{4}/gwt/AdminConsole.html#LandscapeManagementPlace:> starten.
... ...
\ No newline at end of file
0
+NewArchiveCandidateReadyForSpotChecksAndRotationBody=Es wurden die folgenden Prüfungen durchgeführt:\n{3}.\nDer neue {0} Kandidat ist bereit für einen stichprobenartigen Vergleich\nund, falls OK, Rotation zum neuen Produktiv-Server für {0}.\nStichprobenartiger Vergleich unter https://{1}/gwt/Home.html#EventsPlace: und https://{2}/gwt/Home.html#EventsPlace:.\nRotation nach erfolgreichen Prüfungen unter <{4}/gwt/AdminConsole.html#LandscapeManagementPlace:> starten.
1
+NewArchiveCandidateFailedSubject=Überprüfung {1} beim Start von {0} fehlgeschlagen
2
+NewArchiveCandidateFailedBody=Die Überprüfung "{1}" zum Start von {0} ist mit der Meldung "{2}" fehlgeschlagen. Bitte die Landschaft inspizieren und manuell korrigieren.
... ...
\ No newline at end of file
java/com.sap.sailing.landscape/src/com/sap/sailing/landscape/impl/ArchiveCandidateMonitoringBackgroundTask.java
... ...
@@ -140,6 +140,7 @@ public class ArchiveCandidateMonitoringBackgroundTask implements Runnable {
140 140
this.executor = executor;
141 141
this.effectiveBearerToken = effectiveBearerToken;
142 142
this.checks = Arrays.asList(
143
+ new IsAlive(),
143 144
new IsReady(),
144 145
new HasLowEnoughSystemLoad(),
145 146
new HasShortEnoughDefaultBackgroundThreadPoolExecutorQueue(),
... ...
@@ -191,11 +192,28 @@ public class ArchiveCandidateMonitoringBackgroundTask implements Runnable {
191 192
}
192 193
}
193 194
195
+ private class IsAlive extends AbstractCheck {
196
+ private static final long serialVersionUID = -4265303532881568290L;
197
+
198
+ private IsAlive() {
199
+ super("is alive", TIMEOUT_FIRST_CONTACT.get(), DELAY_BETWEEN_CHECKS);
200
+ }
201
+
202
+ @Override
203
+ public boolean runCheck() throws Exception {
204
+ final boolean result = replicaSet.getMaster().isAlive(Landscape.WAIT_FOR_PROCESS_TIMEOUT);
205
+ if (!result) {
206
+ setLastFailureMessage("Candidate at "+replicaSet.getMaster().getHost().getPrivateAddress()+" not alive yet");
207
+ }
208
+ return result;
209
+ }
210
+ }
211
+
194 212
private class IsReady extends AbstractCheck {
195 213
private static final long serialVersionUID = -4265303532881568290L;
196 214
197 215
private IsReady() {
198
- super("is ready", TIMEOUT_FIRST_CONTACT.get(), DELAY_BETWEEN_CHECKS);
216
+ super("is ready", LONG_TIMEOUT, DELAY_BETWEEN_CHECKS);
199 217
}
200 218
201 219
@Override