From debc8c9550b2873ead37c7b81101159abfc55059 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Fri, 2 Dec 2016 13:58:17 +0000 Subject: [PATCH] koschei-backend: Connect to Koji hub using public DNS name We want to use koji02 hub for performance reasons - to reduce load on koji01. But because of how Kerberos auth works, we must connect to it as 'koji.fedoraproject.org', thus hosts entry is added, pointing koji.fedoraproject.org to koji02. --- inventory/group_vars/koschei-backend | 2 +- roles/hosts/files/koschei-backend-hosts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 roles/hosts/files/koschei-backend-hosts diff --git a/inventory/group_vars/koschei-backend b/inventory/group_vars/koschei-backend index 69e014de12..70586138e3 100644 --- a/inventory/group_vars/koschei-backend +++ b/inventory/group_vars/koschei-backend @@ -9,7 +9,7 @@ num_cpus: 4 koschei_topurl: https://apps.fedoraproject.org/koschei koschei_pgsql_hostname: db01.phx2.fedoraproject.org -koschei_koji_hub: koji02.phx2.fedoraproject.org +koschei_koji_hub: koji.fedoraproject.org koschei_kojipkgs: kojipkgs.fedoraproject.org koschei_koji_web: koji.fedoraproject.org diff --git a/roles/hosts/files/koschei-backend-hosts b/roles/hosts/files/koschei-backend-hosts new file mode 100644 index 0000000000..216e0cb694 --- /dev/null +++ b/roles/hosts/files/koschei-backend-hosts @@ -0,0 +1,5 @@ +127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 +::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 +10.5.126.23 infrastructure.fedoraproject.org +# Use koji02 as Koji hub to offload primary koji01 hub a bit +10.5.125.62 koji.fedoraproject.org