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

feat(clustering): entity streaming based cp-dp protocol with lmdb streaming #11632

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

bungle
Copy link
Member

@bungle bungle commented Sep 21, 2023

Summary

The PR #11630 adds streaming protocol for CP-DP reconfigure to avoid huge blob inflation/deflation + json encoding/decoding. This PR includes that and goes one step further and also streams entities directly to lmdb transaction, and moves to entity level validation only (thus a lot of "unneccessary" processing is removed from DP side).

KAG-2673
KAG-2670
KAG-2676

@bungle bungle added pr/do not merge pr/discussion This PR is being debated. Probably just a few details. labels Sep 21, 2023
@bungle bungle force-pushed the feat/cp-dp-entity-streaming branch 5 times, most recently from 1d0e871 to 42a038d Compare September 21, 2023 16:13
@bungle bungle force-pushed the feat/cp-dp-entity-streaming branch 8 times, most recently from b4a9c5a to 6b7880a Compare September 25, 2023 17:48
@bungle bungle force-pushed the feat/cp-dp-entity-streaming branch 3 times, most recently from 97f3aa4 to 1ddff8f Compare September 25, 2023 17:52
@bungle bungle force-pushed the feat/cp-dp-entity-streaming branch 7 times, most recently from 052e375 to 5fa3bdc Compare October 9, 2023 13:12
@kikito
Copy link
Member

kikito commented Oct 10, 2023

Not coming to 3.5

@bungle bungle force-pushed the feat/cp-dp-entity-streaming branch from 5fa3bdc to a98e1aa Compare October 10, 2023 18:53
@bungle bungle force-pushed the feat/cp-dp-entity-streaming branch 3 times, most recently from 0e39c53 to 7e0dc8a Compare October 24, 2023 09:54
@bungle bungle force-pushed the feat/cp-dp-entity-streaming branch 7 times, most recently from 2ad9db5 to ebbad2a Compare November 1, 2023 11:34
### Summary

Uses streaming protocol for CP-DP reconfigure to avoid huge blob
inflation/deflation + json encoding/decoding.

Signed-off-by: Aapo Talvensaari <[email protected]>
### Summary

Removes a lot of unneeded processing from the data plane side by
streaming reconfigure data directly to lmdb transaction, and instead
of doing full declarative config validation/flattening etc. it just
does entity level validation (the entity level validation on DP side
we can remove later on, if we decide so).

Signed-off-by: Aapo Talvensaari <[email protected]>
### Summary

Skip full validation of entities and validate the fields only.

Before:
```
[clustering] received updated configuration from control plane: 17291 ms
```

After:
```
[clustering] received updated configuration from control plane: 11213 ms
```

Signed-off-by: Aapo Talvensaari <[email protected]>
@bungle bungle force-pushed the feat/cp-dp-entity-streaming branch from ebbad2a to c90a5aa Compare November 9, 2023 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants