From a71a7ba2d01f1c5d2c1502ddc8f3835846042b85 Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Thu, 24 Jan 2019 12:05:39 +0100 Subject: [PATCH 1/2] updated Wiki Change-Id: I3c562ed84ca9c2269b780e4e1d6ce799230c2aa4 --- wiki/info/landscape/creating-ec2-mongodb-image-from-scratch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiki/info/landscape/creating-ec2-mongodb-image-from-scratch.md b/wiki/info/landscape/creating-ec2-mongodb-image-from-scratch.md index b47bb0d0f20..b91319d4aac 100644 --- a/wiki/info/landscape/creating-ec2-mongodb-image-from-scratch.md +++ b/wiki/info/landscape/creating-ec2-mongodb-image-from-scratch.md @@ -96,7 +96,7 @@ Then execute ``systemctl enable mongod.service`` to launch the MongoDB process a Connect to the MongoDB on that instance, then issue the command ``rs.initiate()`` in order to turn the instance into the "seed" of a replica set. You can then, for the time being, ``quit()`` the mongo shell. Re-connecting, e.g., with ``mongo "mongodb://localhost:27017/?replicaSet=live"``, will show the ``PRIMARY`` of the new replica set. -Connected to the PRIMARY using the ``mongo`` shell, a replica can be added using ``rs.add({host: "hostname:port"}). For additional options see [here](https://docs.mongodb.com/manual/reference/method/rs.add/). To add a hidden replica on ``dbserver.internal.sapsailing.com:10203``, use ``rs.add({host: "dbserver.internal.sapsailing.com:10203", buildIndexes: false, hidden: true, priority: 0})``. +Connected to the PRIMARY using the ``mongo`` shell, a replica can be added using ``rs.add({host: "hostname:port"})``. For additional options see [here](https://docs.mongodb.com/manual/reference/method/rs.add/). To add a hidden replica on ``dbserver.internal.sapsailing.com:10203``, use ``rs.add({host: "dbserver.internal.sapsailing.com:10203", buildIndexes: false, hidden: true, priority: 0})``. TODO: automate the initialization and replica set extension using "Addition Details" in the instance; create a MongoDB script that is executed during start-up; if no replica set exists and no user detail specifies where the primary is, run ``rs.initiate()``. If a replica set already exists, leave things unchanged. If no replica set exists and in a user detail something like ``REPLICA_SET_NAME=...`` and ``REPLICA_SET_PRIMARY=...`` is provided, add the local node as a secondary to the primary / replica set specified. From 0ce733c4af544189feabd425b7358e02466a65de Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Mon, 28 Jan 2019 15:02:56 +0100 Subject: [PATCH 2/2] fixed createHudsonJobForBug.sh implementation for -r option (release) Change-Id: Iecbcc745eaf7061769014511127ee4ec6a4430d2 --- configuration/createHudsonJobForBug.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/createHudsonJobForBug.sh b/configuration/createHudsonJobForBug.sh index da09fa4ebdc..6c639df1dcc 100755 --- a/configuration/createHudsonJobForBug.sh +++ b/configuration/createHudsonJobForBug.sh @@ -42,7 +42,7 @@ if [ "$SKIP_TESTS" = "1" ]; then sed -i -e 's|\([^<]*\)build *|\1-t build|' "$CONFIGFILE" fi if [ "$BUILD_RELEASE" = "1" ]; then - sed -i -e 's|\([^<]*\)|\1 \&\& PATH=/usr/local/bin:${PATH} configuration/buildAndUpdateProduct.sh -n bug'$BUG_ID' -w trac@sapsailing.com -u release|' "$CONFIGFILE" + sed -i -e 's|\([^<]*\)|\1 \&\& PATH=/usr/local/bin:${PATH} configuration/buildAndUpdateProduct.sh -n bug'$BUG_ID' -w trac@sapsailing.com -u release|' "$CONFIGFILE" fi sed -i -e '/$/{ N