Aperture-py

Latest version: v2.26.0

Safety actively analyzes 688674 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 26 of 53

2.3.3

Changelog

List of aperture PRs merged since 2.3.2 release. For the full list of changes, see [list of changes][changes]

Fixed the API generate issue (2103)


Do not get stats in ProvideDistCache (2096)

![screencapture-localhost-3000-d-1271a5153713edf320f070459528f54dee4fcd78-aperture-quota-scheduler-2023-06-01-12_10_17](https://github.com/fluxninja/aperture/assets/1553055/4722537e-1dc9-4085-997d-1f23b347a469)


Bug fix:
- Removed unnecessary call to `dc.client.Stats` in `ProvideDistCache` function
- Added deferred call to `utils.Shutdown` for proper Olric instance shutdown



> 🎉 A bug we found, a fix we made,
> In the cache provider, improvements laid.
> Stats call removed, shutdown ensured,
> Our code's performance and health secured. 🚀

Fix DistCache timeout error (2095)

- Added timeout to DistCache client status check
- Introduced configurable service name for ServiceDiscovery

[changes]: https://github.com/fluxninja/aperture/compare/releases/aperture-controller/v2.3.2...releases/aperture-controller/v2.3.3

2.3.3rc.1

Changelog

List of aperture PRs merged since 2.3.2 release. For the full list of changes, see [list of changes][changes]

Fixed the API generate issue (2103)


Do not get stats in ProvideDistCache (2096)

![screencapture-localhost-3000-d-1271a5153713edf320f070459528f54dee4fcd78-aperture-quota-scheduler-2023-06-01-12_10_17](https://github.com/fluxninja/aperture/assets/1553055/4722537e-1dc9-4085-997d-1f23b347a469)


Bug fix:
- Removed unnecessary call to `dc.client.Stats` in `ProvideDistCache` function
- Added deferred call to `utils.Shutdown` for proper Olric instance shutdown



> 🎉 A bug we found, a fix we made,
> In the cache provider, improvements laid.
> Stats call removed, shutdown ensured,
> Our code's performance and health secured. 🚀

Fix DistCache timeout error (2095)

- Added timeout to DistCache client status check
- Introduced configurable service name for ServiceDiscovery

[changes]: https://github.com/fluxninja/aperture/compare/releases/aperture-controller/v2.3.2...releases/aperture-controller/v2.3.3-rc.1

2.3.2

Changelog

List of aperture PRs merged since 2.3.1 release. For the full list of changes, see [list of changes][changes]

global token bucket: remove key lock (2091)


Update olric to fluxninja-0.5 (2068)

Description of change


![screencapture-localhost-3000-d-1271a5153713edf320f070459528f54dee4fcd78-aperture-quota-scheduler-2023-05-31-15_39_22](https://github.com/fluxninja/aperture/assets/1553055/94eaee68-a399-4dbd-bbcf-50b76865b061)

**New Feature:**
- Updated DistCache to use an embedded client and improved GetStats
response
- Added context parameter to rate-limiter and flowcontrol functions
- Upgraded Olric library to fluxninja-0.5 in global-token-bucket

**Refactor:**
- Removed unnecessary arguments from newRateLimiterOptions function
- Modified WFQScheduler struct and updated test cases

> 🎉 A leap forward, with changes so grand,
> Contexts and clients, go hand in hand.
> Olric upgraded, token buckets refined,
> Performance and logic, now well-aligned. 🚀

[changes]: https://github.com/fluxninja/aperture/compare/releases/aperture-controller/v2.3.1...releases/aperture-controller/v2.3.2

2.3.2rc.3

Changelog

List of aperture PRs merged since 2.3.1 release. For the full list of changes, see [list of changes][changes]

global token bucket: remove key lock (2091)


Update olric to fluxninja-0.5 (2068)

Description of change


![screencapture-localhost-3000-d-1271a5153713edf320f070459528f54dee4fcd78-aperture-quota-scheduler-2023-05-31-15_39_22](https://github.com/fluxninja/aperture/assets/1553055/94eaee68-a399-4dbd-bbcf-50b76865b061)

Checklist

- [x] Tested in playground or other setup
- [x] Screenshot (Grafana) from playground added to PR for 15+ minute
run
- [x] Documentation is changed or added
- [x] Tests and/or benchmarks are included
- [ ] Breaking changes

<!-- This is an auto-generated comment: release notes by openai -->
Summary by OpenAI

**New Feature:**
- Updated DistCache to use an embedded client and improved GetStats
response
- Added context parameter to rate-limiter and flowcontrol functions
- Upgraded Olric library to fluxninja-0.5 in global-token-bucket

**Refactor:**
- Removed unnecessary arguments from newRateLimiterOptions function
- Modified WFQScheduler struct and updated test cases

> 🎉 A leap forward, with changes so grand,
> Contexts and clients, go hand in hand.
> Olric upgraded, token buckets refined,
> Performance and logic, now well-aligned. 🚀
<!-- end of auto-generated comment: release notes by openai -->

[changes]: https://github.com/fluxninja/aperture/compare/releases/aperture-controller/v2.3.1...releases/aperture-controller/v2.3.2-rc.3

2.3.2rc.2

Changelog

List of aperture PRs merged since 2.3.1 release. For the full list of changes, see [list of changes][changes]

Update olric to fluxninja-0.5 (2068)

Description of change


![screencapture-localhost-3000-d-1271a5153713edf320f070459528f54dee4fcd78-aperture-quota-scheduler-2023-05-31-15_39_22](https://github.com/fluxninja/aperture/assets/1553055/94eaee68-a399-4dbd-bbcf-50b76865b061)

Checklist

- [x] Tested in playground or other setup
- [x] Screenshot (Grafana) from playground added to PR for 15+ minute
run
- [x] Documentation is changed or added
- [x] Tests and/or benchmarks are included
- [ ] Breaking changes

<!-- This is an auto-generated comment: release notes by openai -->
Summary by OpenAI

**New Feature:**
- Updated DistCache to use an embedded client and improved GetStats
response
- Added context parameter to rate-limiter and flowcontrol functions
- Upgraded Olric library to fluxninja-0.5 in global-token-bucket

**Refactor:**
- Removed unnecessary arguments from newRateLimiterOptions function
- Modified WFQScheduler struct and updated test cases

> 🎉 A leap forward, with changes so grand,
> Contexts and clients, go hand in hand.
> Olric upgraded, token buckets refined,
> Performance and logic, now well-aligned. 🚀
<!-- end of auto-generated comment: release notes by openai -->

[changes]: https://github.com/fluxninja/aperture/compare/releases/aperture-controller/v2.3.1...releases/aperture-controller/v2.3.2-rc.2

2.3.1

Changelog

List of aperture PRs merged since 2.3.0 release. For the full list of changes, see [list of changes][changes]

Fixed typo in aperturectl log (2065)


Bug fix:
- Fixed a minor typo in the log message of cmd/aperturectl/cmd/utils/controller.go


> 🎉 A tiny typo fixed, our code now shines,
> With every letter in its place, it gracefully aligns.
> A small change indeed, but worth the cheer,
> For clarity and precision, we hold so dear. 🌟

Use custom PolicyMessage for passing policies to be wrapped (2064)

**New Feature:**
- Introduced `PolicyMessage` type with custom JSON marshaling and
unmarshaling
- Replaced `syncv1.PolicyWrapper` with `iface.PolicyMessage` for
improved policy handling

> 🎉 A new dawn for policies, we cheer,
> With `PolicyMessage`, the path is clear.
> Farewell to `syncv1.PolicyWrapper`, old friend,
> Embrace the change, as new features ascend! 🚀

global token bucket: decide based on deadline (2063)

![Screenshot 2023-05-30 at 10 35 15
PM](https://github.com/fluxninja/aperture/assets/18579817/5023d125-0c62-4f77-b202-99ebee3de07e)

**New Feature:**
- Added `Deadline` field to `takeNRequest` struct in global-token-bucket
- Implemented deadline-based rejection for token requests exceeding wait
time

> 🎉 A deadline we set, to keep things fair,
> ⏰ No more waiting, when tokens are rare.
> 🚀 With global token bucket's new might,
> ✨ Our rate limiter shines ever so bright!

wfq: refactor locking (2062)

Description of change

Now that we have global token buckets, we need to release locks before
accessing the token bucket in order to unblock parallel requests.

![Screenshot 2023-05-30 at 9 53 45
PM](https://github.com/fluxninja/aperture/assets/18579817/550fed37-6b78-42d6-a2b6-e8f5ec45eb71)
![Screenshot 2023-05-30 at 10 11 03
PM](https://github.com/fluxninja/aperture/assets/18579817/cc7fdaad-f964-4d46-878e-0d628bd7b985)

**Refactor:**
- Updated locking mechanisms in various flow control actuators and
schedulers to unblock parallel requests
- Added `context.Context` parameter to `Limiter`, `RateLimiter`, and
`Scheduler` interfaces for better lock handling

**Test:**
- Modified `MockLimiter`, `MockRateLimiter`, and `MockScheduler` methods
to include a `context.Context` parameter

> 🎉 Parallel requests now fly, 🚀
> Unblocked, soaring through the sky. 🌌
> Locks released with context's grace, 🔓
> Our code performs at a swifter pace! 💨

Allow extensions to modify also dynamic parts of collector config (2041)

Allow extensions to modify also dynamic parts of collector config.

In previous approach, extensions were able to provide their own part of
collector config only based on base config, with no ability to depend on
dynamic parts of config. This was preventing eg. fluxninja extesion to
add fluxninja exporters to custom metric pipelines (infra meters).

This commit reverts the idea of multiple config providers. Extension
now provide their config by "hooks" instead. Hooks are executed on every
config udpate, so now extensions can modify also the dynamically
injected parts of config.

Drive-by:
* Actually wait for collector's shutdown in its stop hook.
* Rename structs in otelcollector/config package to avoid stutter.
* Add some logging to fluxninja extension.

Resolves 2001

Fixed issue of incorrect value of setpoint constant variable (2054)

Ref 2052


Optimization
- Improved performance in `pkg/policies/controlplane/components/variable.go` by adding an early return statement to avoid unnecessary computation.


> 🎉 A leap in code, swift and wise,
> 🚀 With early returns, performance flies!
> 🌟 Optimized, our code now gleams,
> 😄 For better software, we all dream!

[changes]: https://github.com/fluxninja/aperture/compare/releases/aperture-controller/v2.3.0...releases/aperture-controller/v2.3.1

Page 26 of 53

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.