Polycrate API 0.11.11 released: Performance Optimization
ayedo Redaktion 1 Minute Lesezeit

Polycrate API 0.11.11 released: Performance Optimization

Polycrate API 0.11.11 delivers massive performance improvements by removing the discovery phase and optimizing activity tracking.
polycrate kubernetes api performance database

Polycrate API version 0.11.11 delivers massive performance improvements by removing the unused discovery phase and optimizing activity tracking.

Highlights

  • Discovery Removal - 500+ DB queries per control_loop cycle eliminated
  • Activity Tracking Optimization - SELECT query in save() eliminated through caching
  • K8sAppInstance Cleanup - Obsolete model removed from reconciliation
  • API Endpoint Cleanup - discover_object task and API endpoint removed

Discovery Phase Removed

The control_loop (every 10 seconds) previously called discover_class() for 5 model types, leading to over 1000 DB queries per cycle - even though the discovery methods mostly contained only pass. This phase has been completely removed.

Before: 1000+ DB queries / 10 seconds
After: 0 DB queries for discovery

Activity Tracking Optimization

The get_original_field_values() function executed an additional SELECT query with every save(). With a new from_db() caching mechanism, values are now stored upon initial loading.

Before: 1 SELECT per save()
After: 0 SELECTs (cached values)

Full Release Notes

polycrate-api Block 0.5.15

The polycrate-api block has been updated to version 0.5.15:

polycrate pull cargo.ayedo.cloud/ayedo/k8s/polycrate-api
polycrate run polycrate-api install

Update Now

docker pull cargo.ayedo.cloud/polycrate/polycrate-api:0.11.11

Polycrate is ayedo’s Infrastructure-as-Code tool for declarative multi-cluster management. Learn more →

Ähnliche Artikel