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:
- Go-based Agent Binary: The
first being theintroduction of a binary based onGOGo for theagent.agent,Previouslyreplacing the previous bashscriptsscripts.were used.
whenUsing thisThis binaryfileexecutes much faster andwhen compiledis compatible across different architecturesThecompiled. - Redis and BullMQ
forIntegration:tasksTheandintroductionautomationofmanagement.Redis as a back-end database server and BullMQ as the queue
manager formanager.tasks and automation management.
- Nginx Configuration: The
third change is theaddition ofaan nginx block for the presentation of the /bullboardurl.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:
AddingAdd theredisRedis service- Add the Redis configuration in the backend environment
- 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...