Commit graph

1338 commits

Author SHA1 Message Date
Jenkins
45662e4d2a (GEM) update vmpooler version to 1.1.1 2021-08-24 13:16:46 +00:00
Heath Seals
9b81aa1ccb
Merge pull request #457 from puppetlabs/bump_otel_gems
Fix otel warning: Bump otel gems to 0.17.0
2021-08-24 08:08:30 -05:00
Jake Spain
c541617452
Bump otel gems to 0.17.0 and address breaking changes 2021-08-23 12:16:45 -04:00
Jenkins
771c5b721a (GEM) update vmpooler version to 1.1.0 2021-08-18 12:05:25 +00:00
Jake Spain
674e2b5aba
Merge pull request #455 from puppetlabs/fix-user-metrics
(POOLER-176) Add Operation Label to User Metric
2021-08-17 15:40:51 -04:00
Jake Spain
c06cfc28f7
Add operation label to user metric and move from manager to api
This adds an "operation" label to the user metrics and moves incrementing from the manager to api, so that the user metrics show when resources are allocated, as well as destroyed. Previously, user metrics were only updated upon destroying a resource.

I think its better suited to increment the metric as part of the api instead of the pool_manger, because it's expected to do so when a user successfully checks out or deletes a VM, but can be problematic when doing so in the provider since it can clone VMs before actually being checked out by a user.
2021-08-13 11:23:10 -04:00
Heath Seals
3b6073933e
Merge pull request #450 from puppetlabs/otel-update
Update OTel gems to 0.15.0
2021-03-11 15:12:18 -06:00
e05ee525be
Update OTel gems to 0.15.0 2021-02-23 14:32:07 -05:00
56f5945565
Merge pull request #446 from puppetlabs/move-to-gh-actions
Migrate testing to GH Actions from Travis
2021-02-03 12:45:40 -05:00
mattkirby
09e86d4be2
Merge branch 'master' into move-to-gh-actions 2021-02-02 09:17:14 -08:00
Jenkins
9984a274b5 (GEM) update vmpooler version to 1.0.0 2021-02-02 17:05:29 +00:00
Samuel
b3183d85bb
Merge pull request #447 from puppetlabs/otel-update
Update OTel gems to 0.13.z
2021-02-02 10:50:16 -06:00
8e9d8ee51e
Update OTel gems to 0.13.z 2021-02-02 11:25:26 -05:00
Heath Seals
40bf2f50dd
Merge pull request #445 from puppetlabs/fix-metrics-path-rollups
(DIO-1503) Fix regex for ondemand instances
2021-02-02 10:17:44 -06:00
7a1fc24685
Fix regex for ondemand instances
It appears we renamed `/ondemand/` to `/ondemandvm/` at some point and,
as a result, have not been stripping hostnames from that endpoint's
metrics. This has caused issues with metrics collection due a very high
cardinality.
2021-02-02 11:11:17 -05:00
95ebc4837a
Migrate testing to GH Actions from Travis 2021-02-02 11:02:23 -05:00
mattkirby
45c14312b6
Merge pull request #440 from puppetlabs/maint_lightstep_ghaction
(maint) Update lightstep pre-deploy ghaction to v0.2.6
2020-12-03 10:31:43 -08:00
Belen Bustamante
a5aa6d4613 Update lightstep pre-deploy ghaction to v0.2.6 2020-12-01 15:40:12 -08:00
Jenkins
eddca1c67d (GEM) update vmpooler version to 0.18.2 2020-11-10 21:07:51 +00:00
Belén
cade2aa942
Merge pull request #438 from mattkirby/pooler_193_2
Remove usage of redis multi from api
2020-11-10 12:40:46 -08:00
Belén
65495fc2ee
Merge branch 'master' into pooler_193_2 2020-11-10 11:46:12 -08:00
Belén
7dd1dc147a
Merge pull request #437 from puppetlabs/MAINT-Fix-checkout-count-AGAIN
(MAINT) Fix checkout counter allocation
2020-11-10 11:40:15 -08:00
kirby@puppetlabs.com
7ff23a386d Remove usage of redis multi from api
This change removes usage of redis multi from API. Without this change the redis usage can cause issues because no connection pool is used, so another worker may try to use the same backend object causing a failure.
2020-11-10 11:38:14 -08:00
John O'Connor
a407d2329d (MAINT) Fix checkout counter allocation
Checkout metric counters were against the template name and not the
actual pool used which prevents us from counting the checkouts in the
pixa4 pools for example.

Note - this is a re-rerun - the last commit on this file over-wrote
the change.
2020-11-10 19:13:24 +00:00
Jenkins
55e45bcbe5 (GEM) update vmpooler version to 0.18.1 2020-11-10 18:04:50 +00:00
John O'Connor
dc8cd998ed
Merge pull request #434 from mattkirby/pooler_193
(POOLER-193) Mark checked out VM as active
2020-11-10 16:31:24 +00:00
John O'Connor
41aeda2d2b
Merge branch 'master' into pooler_193 2020-11-10 15:17:06 +00:00
John O'Connor
e39d95bd1c
Merge pull request #436 from puppetlabs/puma-51
Update Puma to 5.0.4 from ~4.3
2020-11-10 15:16:42 +00:00
e73b49205b
Update Puma to 5.0.4 from ~4.3 2020-11-10 09:12:25 -05:00
kirby@puppetlabs.com
21bf9dbc1c Fix syntax of validate_token in helpers
This change fixes an error in validate_token where hset does not have the correct number of parameters. Without this change validate_token causes a error.
2020-11-09 11:05:58 -08:00
kirby@puppetlabs.com
cfd6a5f991 (POOLER-193) Mark checked out VM as active
This change sets a VM as running in redis as soon as it is checked out. Without this change when allocated several instances it is possible for a machine that has been allocated for a checkout, but not yet marked as active, to be identified as running when it should not be, which was added in POOLER-191. Without this change a machine may be destroyed during checkout by pool_manager if there are several instances being allocated.

Additionally, redis multi is added for vm checkout operations to minimize the round trips to redis during a checkout operation. Without this addition each VM checkout causes several redis interactions.
2020-11-09 11:05:56 -08:00
a3cfe7749e
Merge pull request #435 from puppetlabs/MAINT-Fix-Checkout-Metric
(MAINT) Fix checkout counter allocation
2020-11-09 09:49:56 -05:00
John O'Connor
11bda0f31a (MAINT) Fix checkout counter allocation
Checkout metric counters were against the template name and not the
actual pool used which prevents us from counting the checkouts in the
pixa4 pools for example.
2020-11-06 20:46:11 +00:00
Belén
fd937b416d
Merge pull request #432 from puppetlabs/otel-080
Update to OTel 0.8.0
2020-10-30 09:54:10 -07:00
481cf31010
Update to OTel 0.8.0 2020-10-30 12:49:29 -04:00
John O'Connor
96ceba1954
Merge pull request #423 from puppetlabs/pooler-192
(POOLER-192) Use Rubocop 1.0
2020-10-26 20:34:27 +00:00
Belén
7f3d867b5c
Merge branch 'master' into pooler-192 2020-10-26 11:34:13 -07:00
Belen Bustamante
474aba379c Rubocop fix 2020-10-26 10:25:54 -07:00
Jenkins
32e9b6c330 (GEM) update vmpooler version to 0.18.0 2020-10-26 16:26:29 +00:00
Belen Bustamante
2a6d610b7a Rubocop fix 2020-10-23 17:41:02 -07:00
Samuel
0a323f6052
(maint) Speedup the tagging method (#422)
* (maint) Speedup the tagging method
While looking at the instrumentation data for the ABS queue processor,
I noticed a lot of time spent in the HTTP PUT method, which in the code
was easy to isolate, as it is only used via the vmpooler tagging functions
ie the API /vm/foobar/ with 'tag' key-value pairs.
While I'm not sure the original hset() make sense to me, there was an easy
way to speed them up by using pipelined. I would expect a very good speed
increase with this turned on.

* tag rubocop to <1.0 because the 1.0 version returns 130 new offenses
2020-10-23 09:40:11 -07:00
063a6f6d53
Merge pull request #421 from puppetlabs/dio-1065
(DIO-1065) Add lightstep gh action
2020-10-23 11:44:03 -04:00
Belen Bustamante
fbb5212037 Add lightstep gh action 2020-10-22 17:20:23 -07:00
Jenkins
981d110bbf (GEM) update vmpooler version to 0.17.0 2020-10-20 15:27:00 +00:00
Belén
217bdd7bd0
Merge pull request #419 from puppetlabs/dio-1059
(DIO-1059) Optionally add snapshot tuning params at clone time
2020-10-16 16:38:34 -07:00
suckatrash
b2ac53fa76
(DIO-1059) Optionally add snapshot tuning params at clone time 2020-10-16 16:29:29 -07:00
Jenkins
a42ed6cb5d (GEM) update vmpooler version to 0.16.3 2020-10-14 19:26:09 +00:00
Samuel
e600336a7e
Merge pull request #418 from mattkirby/pooler_191
(POOLER-191) Add checking for running instances that are not in active
2020-10-14 13:14:51 -05:00
kirby@puppetlabs.com
0ad069b958 (POOLER-191) Add checking for running instances that are not in active
This change adds detection of running instances that are in a running
queue, but have no data in a active queue for the same pool. When this
happens a machine will live forever, impacting the running count, and
preventing the machine from being killed. Without this change running
instances that are not marked as active will live forever.
2020-10-13 14:17:51 -07:00
Jenkins
35104a75bb (GEM) update vmpooler version to 0.16.2 2020-10-08 22:44:29 +00:00