Skip to content

Demo application for a bull queue running in Kubernetes with scalable worker processes.

Notifications You must be signed in to change notification settings

grantmcd/bull-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bull-demo

This repo was a POC to demonstrate how a bull queue can function inside of a kubernetes cluster.

The bull-server application has a /queues endpoint where you can view the status of the bull queues and their jobs.

You can hit the root bull-server endpoint with the query param numJobs with an integer value and that many jobs will be added to the queue. Each job takes 10 seconds to complete.

The bull-worker deployment can be scaled up or down as needed to process the jobs in the queue. If a bull-worker pod is terminated, it will gracefully exit by finishing its current job and then stopping its process.

Prerequisites

Add a redis DB to your kubernetes cluster. Easiest way to do this is with helm. Run helm install stable/redis --generate-name

In order for the container to connect to the redis DB, create a configMap called "config" in the same namespace as the containers and create three keys in it with the appropriate values:

  • REDIS_HOST
  • REDIS_PASSWORD
  • REDIS_PORT

About

Demo application for a bull queue running in Kubernetes with scalable worker processes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published