Project

General

Profile

action #88187

coordination #80142: [saga][epic] Scale out: Redundant/load-balancing deployments of openQA, easy containers, containers on kubernetes

Set the addresses in the "internal clients" configurable

Added by ilausuch 9 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2021-01-25
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

Problem:
The listening addresses are hardcoded to localhost within the different "internal clients" (e.g. lib/OpenQA/Scheduler/Client.pm and lib/OpenQA/WebSockets/Client.pm).
This limitation prevents running the different parts of the web UI on different hosts, e.g. a load balanced environment because the different components (scheduler, websockets, …) cannot communicate witch each other.

Suggested solution:
Read an environment variable like OPENQA_SCHEDULER_HOST. This environment variable needs then be supplied to all other containers.
Note: It looks like the livehandler and gru don't have a client. That likely means it is no necessary to care about them as no other services access them (via HTTP).

AC1: The addresses in the "internal clients" are configurable


Related issues

Blocks openQA Project - action #81060: Create a helm chart to deploy web UI in kubernetesBlocked2020-12-14

Blocks openQA Project - action #76990: Improve documentation for redundant/load-balancing webui deployments of openQAResolved

History

#1 Updated by ilausuch 9 months ago

  • Related to action #81060: Create a helm chart to deploy web UI in kubernetes added

#2 Updated by cdywan 9 months ago

I guess set_listen_address in lib/OpenQA/Utils.pm is the main entry point here 🤔

Would MOJO_LISTEN do for a work-around? As documented in the Mojo::Server::Daemon module.

#3 Updated by okurz 9 months ago

  • Category set to Feature requests
  • Target version set to Ready

Sounds useful. Please follow the template from https://progress.opensuse.org/projects/openqav3/wiki#Feature-requests

#4 Updated by okurz 9 months ago

  • Target version changed from Ready to future

We can try to readd it to the backlog in case we have a better format and understanding for this ticket. Currently removing due to backlog size constraints.

#5 Updated by mkittler 9 months ago

  • Description updated (diff)
  • Parent task set to #80142

#6 Updated by cdywan 9 months ago

  • Related to deleted (action #81060: Create a helm chart to deploy web UI in kubernetes)

#7 Updated by cdywan 9 months ago

  • Blocks action #81060: Create a helm chart to deploy web UI in kubernetes added

#8 Updated by cdywan 9 months ago

  • Blocks action #76990: Improve documentation for redundant/load-balancing webui deployments of openQA added

#9 Updated by okurz 8 months ago

  • Status changed from New to Workable
  • Target version changed from future to Ready

I think we need this as well as prerequisite. Not sure if we are loosing focus by bringing it back to the backlog at this time. Let's try.

#10 Updated by mkittler 8 months ago

  • Assignee set to mkittler

#11 Updated by openqa_review 8 months ago

  • Due date set to 2021-03-03

Setting due date based on mean cycle time of SUSE QE Tools

#13 Updated by mkittler 8 months ago

  • Status changed from Workable to Resolved

The PR has been merged.

#14 Updated by okurz 5 months ago

  • Due date deleted (2021-03-03)

Also available in: Atom PDF