Skip to content

Add MQ_QMGR_PRIMARY_LOGFILES, MQ_QMGR_SECONDARY_LOGFILES env variables for configuring logfiles #595

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mrboros
Copy link

@mrboros mrboros commented Mar 15, 2025

This pull request is about to introduce two new environment variables:

  • MQ_QMGR_PRIMARY_LOGFILES - this is to configure the total count of primary logfiles used by the queue manager
  • MQ_QMGR_SECONDARY_LOGFILES - this is to configure the total count of secondary logfiles used by the queue manager

With these two variables, you can configure the amount of log files to be created when initializing the container. The behaviour of these new variables (checks, scope, tests) are the same as the MQ_QMGR_LOG_FILE_PAGES parameter. A sample invocation is demonstrated below:

docker run  \
--env LICENSE=accept \
--env MQ_QMGR_NAME=QM1 \
--env MQ_QMGR_PRIMARY_LOGFILES=64 \
--env MQ_QMGR_SECONDARY_LOGFILES=32 \
--publish 1414:1414 \
--publish 9443:9443 \
--detach \
icr.io/ibm-messaging/mq

The reason behind this pull request is that the default values (primary: 3, secondary: 2) are often not ideal for a dev or prod environment.

The accompanying tests (unit and docker, similar to the LogFilePages ones) are also included in the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant