Git Product home page Git Product logo

worker-queue's Introduction

Valohai Worker Queue

This repository contains a Dockerfile for building the Valohai Worker queue and scripts to deploy the queue.

The Docker image built is based on the official Ubuntu 20.04 image and contains:

  • Redis (version 6+)
  • acmetool (modified for ACMEv2 support)
  • a startup script that wants the specified SSL certificate and runs Redis with the given password

Bulding and Publishing

Build: ./build.sh

Publish: ./publish.sh

Installation

โš ๏ธ The worker queue host machine needs to have port 80 open to the internet and port 63790 open to Valohai (roi) and workers (peon)!

Installing the worker queue on a machine is as easy as running: curl https://raw.githubusercontent.com/valohai/worker-queue/main/host/setup.sh | sudo QUEUE_ADDRESS=your-queue-address-here REDIS_PASSWORD=your-redis-password-here REDIS_PORT=redis-tls-port bash

This installs Docker and creates a systemd service that runs the worker queue with the given parameters.

Replace your-queue-address-here with the xxx.vqueue.net address configured in Valohai's AWS Route 53 and your-redis-password-here with an agreed-upon password for Redis.

Running the above is equal to running the setup script directly: sudo QUEUE_ADDRESS=your-queue-address-here REDIS_PASSWORD=your-redis-password-here ./setup.sh

Manual Setup

If you want to install the worker queue without running the setup script setup.sh at all, here are the steps required:

  • Prepare a Linux host machine with Docker installed
  • Run docker pull valohai/worker-queue:latest
  • Copy host/worker-queue.service from this repository to /etc/systemd/system/worker-queue.service
  • Replace the following values in etc/systemd/system/worker-queue.service: $QUEUE_ADDRESS with your xxx.vqueue.net address and $REDIS_PASSWORD with an agreed-upon password for Redis
  • Run systemctl enable worker-queue
  • Run systemctl start worker-queue

worker-queue's People

Contributors

akx avatar drazendee avatar magdapoppins avatar orasimus avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

worker-queue's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.