[opensuse-buildservice] Cluster OBS installation
Hello, I have already one OBS installed server. Now I would like to configure this OBS as a cluster, i.e. add a few new machines to it. I have been installed OBS on another 2 machines (ISO from openbuildservice.org). Would it be enough just to edit /usr/lib/obs/server/BSConfig.pm file on the *main* machine and /etc/sysconfig/obs-server fine on the *slave* systems? I want that worker on *main* system continue builds. All management should happening using *main* system (using this IP), i.e. I'm going to disable as much as possible OBS services on another systems. Unfortunately I found only README.SETUP file (obs-api package) and have no another documentation or examples or something like this. I don't want to broke/hack OBS on *main* system. It's used in production. It would be great if somebody, who already configured OBS as a cluster, tells what exactly should be done. Cheers, Alex -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Donnerstag, 21. April 2016, 17:37:29 wrote Alex Naumov:
Not sure I get you right, but you can build for multiple OBS servers with the same worker pool. You need to configure the repo servers in BSConfig.pm in the our @reposervers setting. The worker will download the worker code including the BSConfig.pm before each build, so you need to configure it on both OBS backend servers or a worker will not see the other instance anymore. Does this answer your question? bye adrian -- Adrian Schroeter email: adrian@suse.de SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Fri, Apr 22, 2016 at 8:35 AM, Adrian Schröter <adrian@suse.de> wrote:
What's different between "multiple OBS servers" and OBS server with multiply build worker pool? I need to add new machines to the same build worker pool. I just want to increase the number of parallel builds. That's all.
What I don't understand: how new machines will connect to the *main* machine. How *main* machine knows about new machines that ready for build? -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Montag, 25. April 2016, 16:50:20 wrote Alex Naumov:
okay, so this is not what you need.
The workers need to connect to the repserver. This is what mentioned BSConfig::reposervers variable is for. After they have registered the dispatcher will try to send build jobs to them. You can also use SLP to avoid the manual registration. Keep the default setting OBS_USE_SLP="yes" in /etc/sysconfig/obs-server and run the slp server from openslp-server package. It will announce the server in the network and the workers will register automatically. Use slptool findsrvs service:obs.repo_server to check if your server is announcing itself in the network. -- Adrian Schroeter email: adrian@suse.de SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (2)
-
Adrian Schröter
-
Alex Naumov