Upgrading from <1.2.8 to 1.3.0
There are 2 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.
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:
- Adding the redis service
- Add the Redis configuration in the backend environment
- 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: