Skip to main content

Upgrading from <1.2.8 to 1.3.0

Upgrading the serverServer

Introduction 

There are 3 main changes between version 1.2.X and 1.3.xx:

  1. Go-based Agent Binary: The first being the introduction of a binary based on GOGo for the agent.agent, Previouslyreplacing the previous bash scriptsscripts. were used.

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

    when

    Thecompiled.

  2. second change is the introduction of
  3. Redis and BullMQ forIntegration: tasksThe andintroduction automationof management.

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

    manager

    for

    tasks and automation management.

  4. Nginx Configuration: The third change is the addition of aan nginx block for the presentation of the /bullboard url.URL.

Let's go through the two types of upgrades upgrades:

Docker:Docker Upgrade

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

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

Important: Ensure you change the redisRedis password and amendupdate it in theall three areas where "your-redis-password-here" is specifiedspecified.

Complete Docker Compose Configuration

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 # CHANGE THIS TO YOUR REDIS PASSWORD
      REDIS_DB: 0

# ... other environment variables volumes:

 
  redis_data:

Bare metalMetal / VM Upgrade

Instructions for bare metal and VM upgrades will be detailed in the following sections...