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

fix(log_cache_client): Only process HTTPStartStopEvents with peerType client #2928

Merged
merged 7 commits into from
May 15, 2024

Conversation

silvestre
Copy link
Member

@silvestre silvestre commented May 13, 2024

Issue

HTTPStartStop events with peerType Server would be counted against
instance 0 and thus duplicate the number of requests counted by the
App Autoscaler.

Fix

Only process HTTPStartStop events with peerType Client, as they
contain the app instance index in the instanceIndex field.

Note

This is the same issue already fixed for loggregator in c2479e2

@silvestre silvestre added the allow-acceptance-tests This label needs to be added to enable the acceptance tests to run. label May 13, 2024
# Issue
The CI job [upgrade-test] requires the current manifest to be able to deploy the previous stable release.

The removal of `use_buildin_mode: false` broke this

# Fix
Restore `use_buildin_mode: false` until v13 is the previous stable release.

[upgrade-test]: https://concourse.app-runtime-interfaces.ci.cloudfoundry.org/teams/app-autoscaler/pipelines/app-autoscaler-release/jobs/upgrade-test
# Issue

To access our OSS dev environment's BOSH directory one would have to always execute the `bbl print-env` command.

# Fix

Automatically execute it on entering the directory if possible.
…gregator shard

# Issue

Due to different deployments in our CI enviroment all setting the same loggrator nozzle shard, logs and metrics generated during a CI run would get distributed across all `metricsgateway`s. This broke the assumption that a deployments get a copy of all logs and metrics and lead to acceptance test failures.

# Fix
Added an ops file to make the shard ids unique by appending the BOSH deployment name.
Add the `logcache` CLI plugin, which offers e.g. `cf query` to make PromQL queries to the logcache.

Add the `hey` command which can be used to generate requests on an HTTP endpoint.
@silvestre silvestre force-pushed the skip-throughput-and-acceptance-in-ci branch from 340c688 to 457d914 Compare May 14, 2024 14:48
@silvestre silvestre changed the title chore!(ci): Skip throughput and responsetime acceptance tests in loggregator mode fix(log_cache_client): Only process HTTPStartStopEvents with peerType client May 14, 2024
@silvestre silvestre force-pushed the skip-throughput-and-acceptance-in-ci branch from 457d914 to 4be7de5 Compare May 14, 2024 15:14
… client

# Issue
`HTTPStartStop` events with `peerType` `Server` would be counted against
instance `0` and thus duplicate the number of requests counted by the
App Autoscaler.

# Fix
Only process `HTTPStartStop` events with `peerType` `Client`, as they
contain the app instance index in the `instanceIndex` field.

# Note
This is the same issue already fixed for loggregator in c2479e2
@silvestre silvestre force-pushed the skip-throughput-and-acceptance-in-ci branch from 4be7de5 to 8c50ffa Compare May 14, 2024 15:23
Copy link

sonarcloud bot commented May 14, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
14.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@silvestre silvestre added the bug label May 14, 2024
@silvestre silvestre marked this pull request as ready for review May 14, 2024 15:26
@silvestre silvestre merged commit 441d904 into main May 15, 2024
29 of 33 checks passed
@silvestre silvestre deleted the skip-throughput-and-acceptance-in-ci branch May 15, 2024 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
allow-acceptance-tests This label needs to be added to enable the acceptance tests to run. bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants