Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable worker pool size #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

randycoulman
Copy link
Contributor

NOTE: This PR is built on top of #22 so that the tests would run. Please merge that PR first. Only the last commit is part of this PR.

When sending events via HTTP, the worker_pool library is used with a hard-coded number of workers (3).

This allows the number of workers to be configured by the client application. The default remains 3 if the client doesn't specify a value.

Randy Coulman added 2 commits October 8, 2021 18:59
The official `latest` Docker image for InfluxDB is now a 2.x image. That image now supports initial provisioning via environment variables like the 1.x image does.

This makes the following changes:
- Explicitly use a v1.x image (latest is 1.8) for the v1 tests
- Use the DockerHub image for v2 tests
- Use the new image's built-in provisioning support to simplify the Makefile
- Use a hard-coded token to avoid having to inject it everywhere dynamically in the tests
- Revert back to using `/api/v2/delete` for cleaning up after tests. It is now supported again, and the v1 compatibility endpoint wasn't working the same way with the latest version.
- Remove the `.token` file from `.gitignore`; we no longer generate this file.
When sending events via HTTP, the `worker_pool` library is used with a hard-coded number of workers (3).

This allows the number of workers to be configured by the client application. The default remains 3 if the client doesn't specify a value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant