Commit graph

1056 commits

Author SHA1 Message Date
Samuel Beaulieu
11d94cc3d2 (QENG-7201) Vmpooler Status API QueueProcessor Optimization
Before this change we used the API /status endpoint to get specific information
on pools such as the number of ready VMs and the max.
This commit creates two new endpoints to get to that information much quicker
1) poolstat?pool= takes a comma separated list of pools to return, and will provide
the max, ready and alias values.
2) /totalrunning will calculate the total number of running VMs across all pools
2019-04-12 14:34:09 -05:00
kirby@puppetlabs.com
2d94cb4266 (POOLER-141) Fix order of processing migrating and pending queues
This commit updates how migrating and pending queues are processed. Sets to be processed are created with sadd in redis, and iterated over as a list in ruby. The latest member is added to the beginning of this set in redis, and becomes the first member of the set in ruby. To ensure that items are processed in the order they are added it is necessary to reverse the list before iterating through its members. Without this change the newest members of the set are processed first, which creates inconsistent times to evaluation.
2019-04-11 12:29:05 -07:00
kirby@puppetlabs.com
0cc06f6eef (MAINT) Add bundler to dockerfile_local
This commit adds bundler to dockerfile_local in order to support building vmpooler. Without this change the dockerfile_local build fails reporting bundler is not available.
2019-04-11 11:54:00 -07:00
Jenkins CI
2f89de35e7 (TAG) update version to 0.5.1 2019-04-11 18:35:43 +00:00
kirby@puppetlabs.com
27a7f76dbf Update changelog to 0.5.1
This commit updates the changelog to version 0.5.1 in preparation for release.
2019-04-09 15:39:25 -07:00
Samuel
5351c9f45e
Merge pull request #320 from mattkirby/pooler_140
(POOLER-140) Ensure a running VM stays in a queue
2019-04-09 13:48:55 -05:00
kirby@puppetlabs.com
d738f35727 (POOLER-140) Ensure a running VM stays in a queue
This commit updates how a VM is checked out to ensure that there is no window where the VM could be considered discovered, and therefore destroyed. Without this change the VM is retrieved by calling 'spop' on the ready queue, and then adding it to the running queue. This change moves to selecting the VM by retrieving the last member of the set, and moving it with 'smove' from ready to running. As a result of this change vmpooler moves from retrieving the VMs from the ready state randomly, to instead retrieve the oldest VM in the queue. This change should reduce churn where it would otherwise not be required to satisfy demand.
2019-04-05 14:01:18 -07:00
Brian Cain
c815c130f8 Fix Dockerfile link in readme and add note about http requests for dev (#316)
* Fix Dockerfile link in README

* Add note about making http requests for dev
2019-03-04 10:05:42 -08:00
Jenkins
a1ec332ffe (TAG) update version to 0.5.0 2019-02-14 20:04:58 +00:00
Spencer McElmurry
9405ac841c
Merge pull request #318 from mattkirby/pooler_139
(POOLER-139) Fix discovering checked out VM
2019-02-14 11:27:52 -06:00
kirby@puppetlabs.com
3e26a8f998 (POOLER-139) Fix discovering checked out VM
This commit updates how vmpooler retrieves VMs to add a VM to the running queue as soon as it is checked out. Without this change it is possible that a VM can be discovered when it is checked out before it is added to the running queue if multiple systems are requested. Additionally, the dockerfile is updated to support specifying the version of vmpooler to install.
2019-02-13 16:43:55 -08:00
Jenkins
5e4ba2bc7e (TAG) update version to 0.4.0 2019-02-06 23:07:36 +00:00
mattkirby
6562117d13
(MAINT) Update changelog for 0.4.0 release (#315) 2019-02-05 16:52:54 -08:00
mchllweeks
8acf28d0b8
Merge pull request #314 from mattkirby/pooler_138
(POOLER-138) Support multiple pools per alias
2019-02-01 16:22:10 -08:00
kirby@puppetlabs.com
49ec06e151 (POOLER-138) Support multiple pools per alias
This change updates handling of pool aliases to allow for more than a
single pool to be configured as an alias pool. Without this change if
multiple pools are configured as an alias the last one to configure it
is set as the alias for that pool.

Additionally, redis testing requirements are removed in favor of
mock_redis. Without this change a redis server is required to run
vmpooler tests.
2019-02-01 09:05:23 -08:00
Spencer McElmurry
2fa8209642
Merge pull request #313 from mattkirby/jruby_92
Update dockerfile jruby to 9.2
2019-01-31 11:07:38 -06:00
Kevin Imber
d36e7dbee2
Merge pull request #311 from mattkirby/pooler_137
(POOLER-137) Support integer environment variables
2019-01-29 10:37:44 -07:00
kirby@puppetlabs.com
d94b14a4d8 (POOLER-137) Support integer environment variables
This commit updates vmpooler to set configuration values received via environment variables to integer values when an integer value is expected. Without this change vmpooler does not support setting integer values via environment variables. Additionally, testing is added for configuring vmpooler via environment variables.

To support this testing the gem climate_control is added, which allows
for testing environment variables without those set variables leaking to
other tests.
2019-01-22 15:02:07 -08:00
kirby@puppetlabs.com
cde7648a22 Update dockerfile jruby to 9.2
This commit updates jruby in dockerfiles from 9.1 to 9.2. Without this change the dockerfiles use a version of ruby that is no longer tested with vmpooler.
2019-01-22 15:01:30 -08:00
mchllweeks
a1704b239e
Merge pull request #312 from mattkirby/drop_23
Stop testing ruby 2.3.x
2019-01-18 15:41:28 -08:00
kirby@puppetlabs.com
db1e90d893 Stop testing ruby 2.3.x
This commit updates travis configuration to stop testing 2.3.x and jruby 9.1.x. Without this change tests fail due to library incompatibilities with ruby 2.3.x.
2019-01-18 14:29:14 -08:00
mchllweeks
345bdf9db9
Merge pull request #309 from mattkirby/test_current_versions
(MAINT) Update travis to test latest ruby
2019-01-14 09:39:32 -08:00
Jenkins
ae694c5167 (TAG) update version to 0.3.0 2018-12-20 22:52:00 +00:00
Spencer McElmurry
3ddc06406f
Merge pull request #310 from mattkirby/version_3
Change version 0.2.2 to 0.3.0
2018-12-20 09:30:56 -08:00
kirby@puppetlabs.com
c5e1722f30 Change version 0.2.2 to 0.3.0
This commit updates the changelog to change version 0.2.2 to 0.3.0. The changes implemented are not patches so should not be a z release.
2018-12-20 09:24:29 -08:00
Spencer McElmurry
25731194e3
Merge pull request #308 from mattkirby/control_your_layers
Ensure nodes are consistent for usage stats
2018-12-20 08:58:32 -08:00
kirby@puppetlabs.com
12df6830f5 (MAINT) Update travis to test latest ruby
This commit updates travis to test latest ruby versions for vmpooler. Without this change we test out of date versions of ruby with vmpooler.
2018-12-19 12:49:08 -08:00
kirby@puppetlabs.com
2de4a6db0b Ensure nodes are consistent for usage stats
This commit updates vm usage stats collection to replace all instances of '.' characters within node strings. Without this change the node string containing a '.' character causes the metric to be interpreted as containing another node.
2018-12-19 12:45:50 -08:00
Jenkins
b4dfbca40e (TAG) update version to 0.2.31 2018-12-10 22:35:08 +00:00
Jenkins
bfc0c24106 (TAG) update version to 0.2.3 2018-12-10 21:06:47 +00:00
Spencer McElmurry
74b378781f
Merge pull request #307 from mattkirby/030_release
Update changelog for 0.2.3
2018-12-10 11:44:54 -06:00
kirby@puppetlabs.com
d5e96636ce Update changelog for 0.2.3
This commit updates changelog in preparation of the 0.2.3 release.
2018-12-10 09:29:01 -08:00
mchllweeks
310dc7cbc9
Merge pull request #306 from mattkirby/pooler_134
(POOLER-134) Ship VM usage stats
2018-12-10 09:04:12 -08:00
kirby@puppetlabs.com
60b8715a80 Update providers_spec to match array contents
This commit updates providers_spec so the test ensures array content of the providers match. Without this change the provider_spec test will fail when comparing providers if the order is not exactly the same in each array.
2018-12-07 17:08:08 -08:00
kirby@puppetlabs.com
9a57c6d1b5 (POOLER-134) Ship VM usage stats
This commit updates vmpooler to ship VM usage stats when a VM is destroyed. The stats are gathered for jobs based on user and pool name. If a jenkins build URL is present then this is broken down by user, instance, value stream, branch and project. Additionally, if present then the RMM_COMPONENT_TO_TEST_NAME will be listed after project. Without this change we do not collect stats on per VM usage and its correlation to users and pools.
2018-12-07 11:59:27 -08:00
Spencer McElmurry
e3e51afc05
Merge pull request #305 from mattkirby/pooler_133
(POOLER-133) Identify when a ready VM has failed
2018-12-05 11:58:23 -05:00
kirby@puppetlabs.com
3c856d7ae9 (POOLER-133) Identify when a ready VM has failed
This commit fixes checking of a VM that has already been identified as ready. Without this change a ready VM that has failed will be identified as having failed, but will not successfully be removed from the ready queue. Additionally, the default vm_checktime value has been reduced from 15 to 1 to ensure that ready VMs are checked within one minute of the time they have reached the ready state by default.

Lastly, the docker-compose files are updated to specify that the redis
instance used is a local redis instance.
2018-12-03 12:21:08 -08:00
mchllweeks
81b5f620bd
Merge pull request #304 from puppetlabs/POOLER-37
(POOLER-37) Document HTTP responses
2018-10-25 08:30:38 -07:00
Samuel Beaulieu
a34777185d (POOLER-37) Document HTTP responses 2018-10-25 11:02:57 -03:00
mchllweeks
ece0e64331
Merge pull request #303 from mattkirby/sync_pool_sizes
(POOLER-132) Sync pool size on dashboard start
2018-10-08 09:51:29 -07:00
kirby@puppetlabs.com
5704488cc5 (POOLER-132) Sync pool size on dashboard start
This commit updates the dashboard for vmpooler to ensure it is synchronized with any redis based configuration values before displaying the dashboard. Without this change the pool size value may be displayed incorrectly if the value has been set via the /config/poolsize API endpoint.
2018-10-03 13:07:20 -07:00
Jenkins
9bc17a8935 (GEM) update vmpooler version to 0.2.2 2018-10-01 23:25:52 +00:00
Samuel
00836691fe
Merge pull request #302 from mattkirby/changelog_bump
Update changelog version in preparation for release
2018-10-01 18:17:41 -05:00
kirby@puppetlabs.com
4c7820ed99 Update changelog version in preparation for release
This commit updates the version in changelog in preparation for a release.
2018-10-01 11:14:22 -07:00
Kevin Imber
4d4ad063bb
Merge pull request #301 from mattkirby/checkout_platform
(POOLER-131) Return requested name when getting VMs
2018-10-01 10:20:30 -07:00
kirby@puppetlabs.com
4ba4a1dd6c (POOLER-131) Return requested name when getting VMs
This commit updates fetch_single_vm to return the name of the template that was requested, instead of the name of the pool providing the VM to meet the request. Without this change, when an alias is used for fetching a VM, a different pool title may be returned containing the requested VMs than the user initially requested.
2018-09-27 12:05:30 -07:00
mchllweeks
918877918a
Merge pull request #300 from mattkirby/docker_compose
Add docker-compose and dockerfile to support it
2018-09-21 13:42:19 -07:00
kirby@puppetlabs.com
8bddb4f854 Add docker-compose and dockerfile to support it
This commit adds a docker-compose file and a dockerfile to build vmpooler and install it from source.
2018-09-21 13:39:04 -07:00
Jenkins
5e39bc2755 (GEM) update vmpooler version to 0.2.1 2018-09-19 00:05:01 +00:00
mchllweeks
4b48166005
Merge pull request #299 from mattkirby/release_3
Bump version for vmpooler in changelog
2018-09-18 16:55:48 -07:00