-
Notifications
You must be signed in to change notification settings - Fork 235
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
add throttling option to the thingSearch persistence updater #2125
add throttling option to the thingSearch persistence updater #2125
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work @hu-ahmed
Thanks a lot.
I would name the "throttling" config more specific.
Reasoning: We should make clear what is throttled. And we maybe need to add another throttling config for something else at the same config in the future.
It is about throttling after a policy update - so e.g. name it (also everywhere else, including the config) maybe: getPolicyModificationCausedSearchIndexUpdateThrottling()
...java/org/eclipse/ditto/thingsearch/service/common/config/DefaultSearchPersistenceConfig.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/eclipse/ditto/thingsearch/service/common/config/SearchPersistenceConfig.java
Outdated
Show resolved
Hide resolved
...java/org/eclipse/ditto/thingsearch/service/common/config/DefaultSearchPersistenceConfig.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/eclipse/ditto/thingsearch/service/common/config/SearchPersistenceConfig.java
Show resolved
Hide resolved
...se/ditto/thingsearch/service/persistence/write/impl/MongoThingsSearchUpdaterPersistence.java
Outdated
Show resolved
Hide resolved
...se/ditto/thingsearch/service/persistence/write/impl/MongoThingsSearchUpdaterPersistence.java
Outdated
Show resolved
Hide resolved
…r policy update
a8a159f
to
4d501ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice 👍
fix #2122 by adding throttling config