Commit graph

34 commits

Author SHA1 Message Date
dependabot[bot]
ac7c4a930d
Update puma requirement from ~> 5.0, >= 5.0.4 to >= 5.0.4, < 7
Updates the requirements on [puma](https://github.com/puma/puma) to permit the latest version.
- [Release notes](https://github.com/puma/puma/releases)
- [Changelog](https://github.com/puma/puma/blob/master/History.md)
- [Commits](https://github.com/puma/puma/compare/v5.6.4...v6.0.1)

---
updated-dependencies:
- dependency-name: puma
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-21 13:01:29 +00:00
Samuel Beaulieu
b859743694
(maint) Bump version to 2.4.0
Upgrade to jruby 9.3.6.0
Remove workaround for jruby 9.2 using JRUBY_OPTS=-Xinvokedynamic.yield=false
Removed unused dependency nokogiri?
2022-07-25 11:09:59 -05:00
Samuel
84f15441ee
Merge branch 'main' into dependabot/bundler/opentelemetry-instrumentation-redis-0.21.3 2022-07-25 10:12:18 -05:00
Samuel
a3244a6a5d
Merge branch 'main' into dependabot/bundler/opentelemetry-instrumentation-http_client-0.19.4 2022-07-25 10:05:29 -05:00
dependabot[bot]
f5866d51b6
Update rubocop requirement from ~> 1.1.0 to ~> 1.28.2
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.1.0...v1.28.2)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-25 09:06:07 -05:00
dependabot[bot]
631b68855c
Update opentelemetry-instrumentation-redis requirement from = 0.21.2 to = 0.21.3
Updates the requirements on [opentelemetry-instrumentation-redis](https://github.com/open-telemetry/opentelemetry-ruby) to permit the latest version.
- [Release notes](https://github.com/open-telemetry/opentelemetry-ruby/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-ruby/blob/main/instrumentation/redis/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-ruby/compare/opentelemetry-instrumentation-redis/v0.21.2...opentelemetry-instrumentation-redis/v0.21.3)

---
updated-dependencies:
- dependency-name: opentelemetry-instrumentation-redis
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-07 14:04:11 +00:00
dependabot[bot]
09bc406c9f
Update opentelemetry-instrumentation-http_client requirement from = 0.19.3 to = 0.19.4
Updates the requirements on [opentelemetry-instrumentation-http_client](https://github.com/open-telemetry/opentelemetry-ruby) to permit the latest version.
- [Release notes](https://github.com/open-telemetry/opentelemetry-ruby/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-ruby/blob/main/instrumentation/http_client/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-ruby/compare/opentelemetry-instrumentation-http_client/v0.19.3...opentelemetry-instrumentation-http_client/v0.19.4)

---
updated-dependencies:
- dependency-name: opentelemetry-instrumentation-http_client
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-07 14:04:03 +00:00
72c82cf084
Add OTel HttpClient Instrumentation
This will be useful for the GCE provider.
2022-01-20 11:42:43 -05:00
Samuel Beaulieu
23efcc4cc0
(maint) Fix EXTRA_CONFIG merge behavior
Before this change if an extra config file had new keys they would get
merged to the main config but if it contained an existing key, like
'providers' it would overwrite the original config.
Adding a library 'deep_merge' to do a more natural merge, where existing keys
get sub-elements added together and arrays are combined like for the
pool configuration.
Adding spec tests around EXTRA_CONFIG as they were missing, by adding
and testing two new extra_config.yaml fixture files
2021-12-23 13:34:33 -06:00
48107bb6c7
Update to latest OTel gems 2021-12-20 12:36:34 -05:00
bc0a369602
Move vsphere provider to its own gem 2021-12-03 09:41:29 -05:00
dd1b8167a9
(DIO-2186) Add vmp_utils cli tool
This adds a thor-based cli under the utils folder. Its initial function
is to make it easier to migrate tokens from one redis instance to
another.
2021-09-16 16:02:02 -04:00
Jake Spain
c541617452
Bump otel gems to 0.17.0 and address breaking changes 2021-08-23 12:16:45 -04:00
e05ee525be
Update OTel gems to 0.15.0 2021-02-23 14:32:07 -05:00
8e9d8ee51e
Update OTel gems to 0.13.z 2021-02-02 11:25:26 -05:00
Belen Bustamante
a5aa6d4613 Update lightstep pre-deploy ghaction to v0.2.6 2020-12-01 15:40:12 -08:00
e73b49205b
Update Puma to 5.0.4 from ~4.3 2020-11-10 09:12:25 -05:00
481cf31010
Update to OTel 0.8.0 2020-10-30 12:49:29 -04:00
Belen Bustamante
2a6d610b7a Rubocop fix 2020-10-23 17:41:02 -07:00
Belen Bustamante
fbb5212037 Add lightstep gh action 2020-10-22 17:20:23 -07:00
cb1f19ad1f
Bump OTel Sinatra to 0.7.1
This is to pull in the bug fix in
https://github.com/open-telemetry/opentelemetry-ruby/pull/434
so that the new feature of naming spans based on their Sinatra route
actually works.
2020-10-08 18:13:33 -04:00
f5698d49fc
Update to OTel 0.7.0
This update includes two key benefits:

1. Spans will be named based on their route instead of the full path
   info thanks to https://github.com/open-telemetry/opentelemetry-ruby/pull/415
2. Helper methods were added to the configurator to simplify setting
   service.name and service.version
2020-10-08 09:49:45 -04:00
Samuel Beaulieu
338c97b33f (maint) Centralize dependency management in the gemspec
As per best practices, removed duplication between the Gemfile and gemspec.
There was also some seemingly superfluous install in the Gemfile.
Ordered the dependency by alphabetical order.
Tested locally by deleting the .bundle and recreating successfully
2020-09-23 14:37:27 -05:00
1acc70c897
Fix mixup of gem placement. (#404)
It seems I should have put these in vmpooler.gemspec instead of the
Gemfile. Now I know :)
2020-09-18 12:53:56 -05:00
dependabot[bot]
92652bf6ee
Update rbvmomi requirement from ~> 2.1 to >= 2.1, < 4.0 (#391)
Updates the requirements on [rbvmomi](https://github.com/vmware/rbvmomi) to permit the latest version.
- [Release notes](https://github.com/vmware/rbvmomi/releases)
- [Commits](https://github.com/vmware/rbvmomi/compare/v2.1.0...v2.4.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mattkirby <kirby@puppet.com>
2020-09-09 15:28:15 -07:00
John O'Connor
bbd76bde4c (POOLER-160) Add Prometheus to pooler startup
This is a re-architect of the vmpooler initialisation code to:
1. Allow an API service for both manager and the api
2. Add the Prometheus endpoints to the web service.
   Needed to change the way the Rack Service is started as instantiating
   using ".New" leads to a failure to initialise the http Stats
   collection.
3. Selectively load the pooler api and/or Prometheus endpoints.
4. Rework API Spec tests for revised API loading. Needed to tidy up the
   initialisation and perform a reset! after each test to avoid "leaks"
   and dependencies between the tests.
2020-06-29 19:52:14 +01:00
kirby@puppetlabs.com
811fd8b60f (POOLER-158) Add capability to provision VMs on demand
This change adds a capability to vmpooler to provision instances on
demand. Without this change vmpooler only supports retrieving machines
from pre-provisioned pools.

Additionally, this change refactors redis interactions to reduce round
trips to redis. Specifically, multi and pipelined redis commands are
added where possible to reduce the number of times we are calling redis.

To support the redis refactor the redis interaction has changed to
leveraging a connection pool. In addition to offering multiple
connections for pool manager to use, the redis interactions in pool
manager are now thread safe.

Ready TTL is now a global parameter that can be set as a default for all
pools. A default of 0 has been removed, because this is an unreasonable
default behavior, which would leave a provisioned instance in the pool
indefinitely.

Pool empty messages have been removed when the pool size is set to 0.
Without this change, when a pool was set to a size of 0 the API and pool
manager would both show that a pool is empty.
2020-06-03 14:00:04 -07:00
Brandon High
0c0ee0cdd2
rake gemspec dep in ~> format instead of range 2020-03-17 15:10:15 -07:00
dependabot-preview[bot]
526d88d673
Update rake requirement from ~> 12.3 to >= 12.3, < 14.0
Updates the requirements on [rake](https://github.com/ruby/rake) to permit the latest version.
- [Release notes](https://github.com/ruby/rake/releases)
- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc)
- [Commits](https://github.com/ruby/rake/compare/v12.3.0...v13.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-17 19:33:09 +00:00
kirby@puppetlabs.com
9e5b434582 Update gem dependencies to latest versions
This commit updates vmpooler gem dependencies in Gemfile and gemspec files. Without this change vmpooler is pinned to out of date version of multiple libraries.
2020-03-17 11:20:57 -07:00
kirby@puppetlabs.com
fa5aa8d0be Add spicy-proton to vmpooler.gemspec
This commit adds the spicy-proton gem to vmpooler.gemspec. Without this change the spicy-proton gem is in the Gemfile, but not the gemspec, causing issues when deploying from gem.
2019-10-25 09:00:01 -07:00
kirby@puppetlabs.com
cd73f53561 (POOLER-129) Allow setting weights for backends
This commit updates get_vm in the vmpooler API to allow for setting weights for backends. Additionally, when an alias for a pool exists, and the backend configured is not weighted, then the selection of the pool based on alias will be randomly sampled. Without this change any pool with the title of the alias is exhausted before an alternate pool with the configured alias is used, which results in an uneven distribution of VMs. When all backends involved are configured with weighted values the VM selection will be based on probability using those weights.

A bug is fixed when setting the default ttl for check_ready_vm.

Pickup is added to handle weighted VM selection.

A dockerfile is added that allows for building and installing vmpooler
from the current HEAD in docker to make for easy testing.
2018-09-11 11:15:02 -07:00
kirby@puppetlabs.com
4788693749 Update gemspec in preparation for vmpooler release
This commit updates gemspec and Gemfile in preparation of a vmpooler release. To support this change the vmpooler executable is placed into a bin directory for inclusion in the gem. The license in gemspec is updated to Apache 2.0 to reflect the vmpooler project license.
2018-07-14 15:49:58 -07:00
Corey Osman
148f92591e Adds a gemspec file 2018-06-12 12:01:26 -07:00