Commit Graph

34 Commits

Author SHA1 Message Date
Stephen Marshall
6c72c894f7 add multi-instance Queue Managers (#307)
* Initial code to implement multi-instance queue manager

* alter default mqsc to prevent race between listeners on standby startup

* Updates to multi-instance queue manager code

* initial multi instance test

* Multi-instance code improvements

* Multi instance fixes and first test

* configure queue manager

* Add mirror log filtering for mult-instance QMs

* Add log message for multi-instance enabled

* Improvements to container runtime logging

* refactor test

* Test active standby switch

* Improve createQueueManager function

* Test multi instance race

* wait

* multi instance mount tests

* skip race test

* mount tests

* no mount test

* single instance split mount tests

* readiness check

* More updates for handling standby queue manager

* Improve standby checks

* Minor fixes to miqm

* Fix logging of JSON errors

* Update copyrights

* Fix log includes
2019-05-01 14:42:25 +01:00
Rob Parker
63af43f19d Expand redaction system to handle uncommon MQSC cases (#304)
* Expand redaction system to handle uncommon MQSC cases

* add invalidMQSC fixes

* address PR comments
2019-04-17 10:34:29 +01:00
Arthur Barr
4f57d1bae2 Tidy up commented code 2019-02-27 15:32:34 +00:00
Arthur Barr
cc0f072908 Change for running as a non-root user (#276)
* Enable running container as mqm

* Fix merge problem

* Don't force root usage

* RHEL image runs as mqm instead of root

* Build on host with SELinux enabled

* Enable building on node in an OpenShift cluster

* Enable running container as mqm

* Fix merge problem

* Don't force root usage

* Merge lastest changes from master

* RHEL image runs as mqm instead of root

* Fix merge issues

* Test changes for non-root

* Make timeout properly, and more non-root test fixes

* Run tests with fewer/no capabilities

* Correct usage docs for non-root

* Add security docs

* Add temporary debug output

* Remove debug code

* Fixes for termination-log

* Allow init container to run as root

* Fixes for CentOS build

* Fixes for RHEL build

* Logging improvements

* Fix Dockerfile RHEL/CentOS build

* Fix bash error

* Make all builds specify UID

* Use redist client for Go SDK

* Inspect image before running tests

* New test for init container

* Log container runtime in runmqdevserver

* Add extra capabilities if using a RHEL image
2019-02-27 15:32:34 +00:00
Rob Parker
78ce84b3a1 Implement GOSec for security scanning Fix vulnerabilities (#227)
* Implement GOSec for security scanning Fix vulnerabilities

* Fix lint failure

* address PR comments and fix build break

* Fix test break in mqsc
2018-10-11 15:39:22 +01:00
Stephen Marshall
854a0119de Disable metric system_ram_size_bytes 2018-06-26 13:40:56 +01:00
Stephen Marshall
5a63591b18 Remove watermark metrics 2018-06-25 12:13:11 +01:00
Stephen Marshall
74659dbf59 Change delta type metrics to counters 2018-06-20 14:49:09 +01:00
Stephen Marshall
a1ae6b3a97 Improve metrics name mapping code 2018-06-18 14:28:46 +01:00
Stephen Marshall
2e0aad0318 Update metric names and allow skipping of specific metrics 2018-06-18 13:28:49 +01:00
Stephen Marshall
53fdfe55de Improvements to metrics code 2018-06-12 16:56:44 +01:00
Stephen Marshall
7551ce3812 Map metric names based on description 2018-06-07 10:25:16 +01:00
Stephen Marshall
4dfe8ed855 Improve metrics error handling (#114)
* Improve metrics error handling

* Updates to metrics error handling
2018-06-06 13:50:48 +01:00
Arthur Barr
2939a9fd1a Use string value for pid in JSON log (#110) 2018-06-04 16:37:50 +01:00
Stephen Marshall
5d0a87ae0a Improve prometheus error handling (#108) 2018-06-04 15:31:03 +01:00
Stephen Marshall
f8b500e0a1 Add check for duplicate metric keys (#106)
* Remove vet of test code

* Add check for duplicate metric keys
2018-06-01 15:29:18 +01:00
Rob Parker
143649deb6 More metric tests and fix reconnect
* more metric test and fix reconnect

* remove build-devjmstest as dependency
2018-05-31 11:56:39 +01:00
Arthur Barr
9f3032f014 Log extra environment information (#95)
* Make metrics tests use a host port

* fix port forwarding in devconfig tests

* Log extra environment information at startup
2018-05-31 09:35:16 +01:00
Stephen Marshall
4bbdb36da0 Skip metrics collect on first pass and more unit tests 2018-05-24 17:10:16 +01:00
Stephen Marshall
a4b9a9abaf Initial delivery of metrics code (#81)
* Initial delivery of metrics code

* Fix build issues

* Fix build issue with go vet
2018-05-24 09:15:12 +01:00
Stephen Marshall
3aa46e0793 When pushed, this commit will replace hard-coded values with calls to LookupMQM 2018-04-25 16:24:46 +01:00
Riccardo Biraghi
49e90d2e54 Update copyright statement in capabilities.go 2018-04-12 09:06:05 +01:00
Riccardo Biraghi
831f0695a9 Add vetting, formatting and vetting make commands and fix related errors 2018-04-11 13:43:57 +01:00
Arthur Barr
e809d0959b Changed mq_log to mq_containerlog 2018-03-19 09:53:02 +00:00
Arthur Barr
d495b3640e Add extra fields to runmqserver JSON log 2018-03-12 16:27:57 +00:00
Arthur Barr
10e448056b Add web server to dev image 2018-03-12 11:14:59 +00:00
Arthur Barr
1e0ba3d897 Use mutex for logger 2018-03-05 10:15:09 +00:00
Arthur Barr
91bf65ab57 Remove logrus to allow for easier customization 2018-02-22 17:29:06 +00:00
Arthur Barr
c9cc1741c7 Write termination message 2018-02-22 11:31:42 +00:00
Arthur Barr
e65d679a21 Put variable data in /run instead of /tmp 2018-02-19 10:34:53 +00:00
Arthur Barr
b62a883d4c Improvements to log mirroring 2018-02-15 14:59:14 +00:00
Arthur Barr
911f9db2fd Update readiness check 2018-02-14 11:18:20 +00:00
Arthur Barr
46110436b8 Change command exit status handling 2017-11-21 15:53:14 +00:00
Arthur Barr
099397442b Restructure packages for reuse 2017-11-21 14:32:09 +00:00