question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create new lagoon type "worker" for long operating processes

See original GitHub issue

Currently, Lagoon projects that have long running (non-web) processes use the cli Lagoon type to run these processes in. This is not optimal, as the cli type should be reserved for short-running, instant spin-up type uses.

We are proposing to add an additional type worker and corresponding worker-persistent type to Lagoon. The main aim of these types is to accommodate projects that have long-running, persistent, and non-web-facing processes. Where a project contains a worker type and needs cronjobs - these cronjobs would be run inside the worker pod instead of a separate cron pod.

The main benefit of this is that cli pods can be idled when they are not in use, reducing load on a cluster, and can be treated appropriately during scaling or node-shuffling events. This will also mean that projects can operate their web-facing containers as lean as possible, offloading backend processing or interactive tasks to an additional pod, with specialist tooling.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
shreddedbaconcommented, Feb 23, 2021

Would be cool to be able to also have this be extendable with a custom port

services:
  worker:
    labels:
      lagoon.port.enabled: true
      lagoon.port.number: 8080
      lagoon.probe.liveness: 30
      lagoon.probe.readiness: 30

And these would be injected into the template with conditions for the port and direct for the probes. This would give some flexibility to the worker type then to be a little bit more generic.

For the probe overrides, it would probably be good to have some sane maximums.

This could also then possibly be used for #2528

0reactions
tobybellwoodcommented, Feb 23, 2021

mhh how about we make it completely customizable and allow developers to inject helm variables via Lagoon?

Could this be applied to all helmcharts and not just this specific one?

The purpose of this chart is to define an always-running non-ingress type, instead of abusing the cli type - making this chart too flexible would leave it open to misuse as well!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Residential Onsite Wastewater Treatment: Lagoon Design ...
Processes occurring within a wastewater lagoon. A properly designed, installed, and maintained lagoon is an approved method of wastewater treatment for a ......
Read more >
Wastewater Stabilization Lagoon Training Course
This course was developed to provide the operators of wastewater stabilization lagoon systems with the basic understanding of this treatment process as well ......
Read more >
Lagoon Systems
In the lagoon, wastewater is treated through a combination of physical, biological, and chemical processes. Much of the treatment occurs naturally, ...
Read more >
Sewage Lagoon Basics - OMAG
A sewage lagoon is a large pond into which the sewage or effluent from the sewage system flows. Sewage lagoons are also called...
Read more >
Principles of Design and Operations of Wastewater Treatment ...
Under a mandate of national environmental laws, the. Agency strives to formulate and implement actions leading to a compatible balance between human activities ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found