Skip to main content

Upgrading from <1.2.8 to 1.3.0

Upgrading the server

Introduction 

There are 3 main changes between 1.2.X and 1.3.x

The first being the introduction of a binary based on GO for the agent. Previously bash scripts were used.

Using this binary file executes much faster and when compiled is compatible across different architectures

The second change is the introduction of Redis and BullMQ for tasks and automation management.

Redis as a back-end database server and BullMQ as the queue manager.

 

The third change is the addition of a nginx block for the presentation of the /bullboard url. 

 

Let's go through the two types of upgrades 

Docker:

This is quite simple as we just have to add the following in the container configuration for Redis:

  1. Adding the redis service
  2. Add the Redis configuration in the backend environment
  3. Add a new redis_data: volume

Ensure you change the redis password and amend it in the three areas where "your-redis-password-here" is specified

name: patchmon

services:

  redis:
    image: redis:7-alpine
    restart: unless-stopped
    command: redis-server --requirepass your-redis-password-here # CHANGE THIS TO YOUR REDIS PASSWORD
    volumes:
      - redis_data:/data
    healthcheck:
      test: ["CMD", "redis-cli", "--no-auth-warning", "-a", "your-redis-password-here", "ping"] # CHANGE THIS TO YOUR REDIS PASSWORD
      interval: 3s
      timeout: 5s
      retries: 7

  backend:
    environment:

      # Redis Configuration
      REDIS_HOST: redis
      REDIS_PORT: 6379
      REDIS_PASSWORD: your-redis-password-here
      REDIS_DB: 0

volumes:

  redis_data:

Bare metal / VM