[sysadmin-bin] Off load ldap.gnome.org from the major queries and send them to our primary ldap slave
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Off load ldap.gnome.org from the major queries and send them to our primary ldap slave
- Date: Wed, 13 Nov 2013 15:36:02 +0000 (UTC)
commit e32f9f0923523612ffcfb183ef5f5ed7e1ee9e45
Author: Andrea Veri <av gnome org>
Date: Wed Nov 13 16:35:56 2013 +0100
Off load ldap.gnome.org from the major queries and send them to our primary ldap slave
create-auth | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/create-auth b/create-auth
index 8415cad..0fba435 100755
--- a/create-auth
+++ b/create-auth
@@ -31,7 +31,10 @@ def get_md5sum_hash():
## Don't overload ldap.gnome.org too much, make use of our slave
## for the gnomecvs and ftpbasic groups.
-if socket.gethostname == 'git.gnome.org' or socket.gethostname == 'master.gnome.org':
+
+SLAVE_CONNECTED_MACHINES = ['git.gnome.org', 'master.gnome.org', 'clipboard.gnome.org, 'webapps2.gnome.org']
+
+if socket.gethostname in SLAVE_CONNECTED_MACHINES:
ldap_server = 'view.gnome.org'
else:
ldap_server = 'ldap.gnome.org'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]