mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-25 18:35:07 +00:00
perf(kv): push keys to vaults concurrently, log one summary per title
Vaults.add_key and add_keys now push to every vault at the same time, so one unreachable vault costs its own timeout instead of the sum. MySQL defaults connect_timeout to vault_timeout.
This commit is contained in:
@@ -3566,7 +3566,7 @@ def cache_to_vaults(keys: Dict[str, str], service_name: str) -> None:
|
||||
key_map = {UUID(hex=kid): key for kid, key in keys.items()}
|
||||
cached = vaults.add_keys(key_map)
|
||||
if cached:
|
||||
log.info(f"Cached {cached} key(s) to {cached} server vault(s)")
|
||||
log.info(f"Cached {len(key_map)} key(s) to {cached}/{len(vaults)} server vault(s)")
|
||||
except (Exception, SystemExit) as e:
|
||||
log.warning(f"Failed to cache keys to vaults: {e}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user