Skip to content
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

Add critical analyzer configuration #162

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions roles/activemq/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,16 @@ Role Defaults
|`activemq_db_jdbc_driver_class`| The fully qualified class name of the desired database Driver | `org.apache.derby.jdbc.EmbeddedDriver` |


#### Critical Analyzer

| Variable | Description | Default |
|:---------|:------------|:--------|
|`activemq_critical_analyzer`| Should the broker detect dead locks and other issues | `true` |
|`activemq_critical_analyzer_timeout`| Timeout used to do the critical analysis (milliseconds) | `120000` |
|`activemq_critical_analyzer_check_period`| Time used to check the response times (milliseconds) | `60000` |
|`activemq_critical_analyzer_policy`| Should the server log, be halted or shutdown upon failures (one of LOG, HALT, SHUTDOWN) | `HALT` |


#### Acceptors / connectors

| Variable | Description | Default |
Expand Down
5 changes: 5 additions & 0 deletions roles/activemq/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ activemq_db_bindings_table: BINDINGS_TABLE
activemq_db_message_table: MESSAGE_TABLE
activemq_db_large_message_table: LARGE_MESSAGES_TABLE
activemq_db_jdbc_driver_class: org.apache.derby.jdbc.EmbeddedDriver
# critical analyzer
activemq_critical_analyzer: true
activemq_critical_analyzer_timeout: 120000
activemq_critical_analyzer_check_period: 60000
activemq_critical_analyzer_policy: LOG

### Enable TLS
activemq_tls_enabled: false
Expand Down
16 changes: 16 additions & 0 deletions roles/activemq/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,22 @@ argument_specs:
description: "The max percentage of data we should use from disks. The System will block while the disk is full."
default: 96
type: 'int'
activemq_critical_analyzer:
description: "Should the broker detect dead locks and other issues"
default: true
type: 'bool'
activemq_critical_analyzer_timeout:
description: "Timeout used to do the critical analysis (milliseconds)"
default: 120000
type: 'int'
activemq_critical_analyzer_check_period:
description: "Time used to check the response times (milliseconds)"
default: 60000
type: 'int'
activemq_critical_analyzer_policy:
description: "Should the server log, be halted or shutdown upon failures (one of LOG, HALT, SHUTDOWN)"
default: 'LOG'
type: 'str'
systemd:
options:
activemq_version:
Expand Down
4 changes: 4 additions & 0 deletions roles/activemq/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,7 @@ activemq_core_configuration_list:
- message_counter_enabled
- message_counter_sample_period
- message_counter_max_day_history
- critical_analyzer
- critical_analyzer_timeout
- critical_analyzer_check_period
- critical_analyzer_policy