How to reduce the size of Support Bundle

Introduction

After running the CircleCI Server for a while, the size of the Support bundle will gradually increase. This is because Replicated Operator continually accumulates application logs and those logs are stored in the following path in the support bundle.

/scheduler/node/<node_id>/scheduler/var/lib/replicated-operator/logs/*
 

Prerequisites

  • CircleCI Server
  • Admin Permissions

Instructions

The total size of logs managed by the Replicated Operator can be limited, by default, it's 500MB. So, to reduce the size of the Support bundle, you can follow the steps below. 
Below is an example /etc/default/replicated-operator configuration file with Operator set to reduce total log size to 10MB.
 
1. Add APP_LOG_SIZE environment variable into the replicated-operator option.

      $ vim /etc/default/replicated-operator
REPLICATED_OPERATOR_OPTS="-e TAGS=local -e LOG_LEVEL=info -e NODENAME=a.dev.instance -e PUBLIC_ADDRESS=1.2.3.4"



REPLICATED_OPERATOR_OPTS="-e APP_LOG_SIZE=10MB -e TAGS=local -e LOG_LEVEL=info -e NODENAME=a.dev.instance -e PUBLIC_ADDRESS=1.2.3.4"

2. Restart replicated-operator

$ sudo service replicated-operator restart

 

Additional Resources:

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.