Commit Graph

7 Commits

Author SHA1 Message Date
Clark Boylan a5f06418b6 Remove config management for subunit2sql workers
The openstack health service is being shutdown and retired. That
services was the only service that relied on the subunit2sql workers.
This means we can shutdown and retire the subunit2sql workers. This is
one step of that process.

Change-Id: Ibd02faaeba888dfcd1f512f4dd3a7d768497fc16
2022-04-18 10:01:57 -07:00
Matthew Treinish 0bd9954bd7
Correct the ca-cert for mqtt on subunit worker
This patch fixes a mistake on my part, previously the location of
the ca certs on archlinux, but on ubuntu this isn't where they
live. So the mqtt libs can't properly encrypt the traffic and
things are getting stuck in a loop and not working. This commit fixes
this by writing the cert from instantssl/comodo to disk and then
pointing the worker at that. This way it should always work.

Change-Id: I21b1a64b457545115ff862e3c3388c5892c5497b
2017-04-25 17:41:39 -04:00
Matthew Treinish b163c199ea
Enable firehose reporting on subunit workers
This commit enables the mqtt support in the subunit gearman worker so
the workers will report over mqtt when they process a subunit file.

Change-Id: Ifff2f57740f160e328c0548254e16b04e6ab6c4e
Depends-On: Ibd13b737eccf52863a69d20843cb7d50242f7bb9
2017-04-06 15:28:47 -04:00
Mikhail S Medvedev 012b5c585e Move out server class from subunit_worker.pp
Change-Id: Ic23472198c6a1842398c2a44de4a08ef89e1fb71
Story: 2000172
Spec: http://specs.openstack.org/openstack-infra/infra-specs/specs/server_base_template_refactor.htm
2015-07-21 10:23:58 -05:00
Matthew Treinish 73b17812c0 Only start 1 subunit worker per node
This commit removes the 3 unneeded subunit worker processes from the
subunit_worker node type. Previously, 4 workers were launched on the
same node (similar to the logstash workers) but this caused issues
in production. (they consumed all the ram) After dropping down to one
process it was able to handle the load without issue and didn't
consume all the resources.

Change-Id: I5f7f85fc6f8bfb5d2fbec548b58c5d8a1bc0e628
2015-01-30 13:09:08 -05:00
Matthew Treinish 5941f835ac Switch subunit2sql to use decomposed uri
This commit switches the subunit2sql_uri which get's passed into the
config file template to use decomposed values. The advantage of this
is that it enables using subsets of the information elsewhere.

Change-Id: I30b5117c12897fa3a1cb1e2579b4eec59ba57b2b
2014-12-05 14:27:00 -05:00
Matthew Treinish 92b8981c1c Add subunit2sql gearman workers
This adds a new gearman worker to process the subunit files from
the gate job runs. It will use subunit2sql to connect to a sql
server and process the data from the subunit file. The
log-gearman-client is modified to allow for pushing subunit jobs
to gearman, and the worker model for processsing logs is borrowed
to process the subunit files.

Change-Id: I83103eb6afc22d91f916583c36c0e956c23a64b3
2014-10-29 13:03:49 -04:00