Skip to content

Commit

Permalink
Make possible to ban yqla\qt
Browse files Browse the repository at this point in the history
This PR makes it possible to ban qt\yqla. This may be useful for rolling updates, as it will allow us to avoid running new queries on old instances.

YqlAgent in banned state stops accepting new queries, but continues to process old ones.
QueryTracker in banned state stops accepting incoming API calls and stops taking new queries from Active Queries table, while still processing old ones.

---

Pull Request resolved: ytsaurus/ytsaurus#851
commit_hash:126cf666fc066779f3d6c80296ed9bcd5e6651cc
  • Loading branch information
Krisha11 authored and robot-piglet committed Oct 18, 2024
1 parent 7a19b35 commit 4d0776d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions yt/python/yt/environment/components/query_tracker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,16 @@ def run(self):
"stages": {
"production": {
"channel": {
# NB(mpereskokova): Required for the bans mechanics;
# In case of disabled balancing on single address discovery,
# discovery requests are not sent and bans are not executed
"disable_balancing_on_single_address": False,
"addresses": self.addresses,
}
},
"testing": {
"channel": {
"disable_balancing_on_single_address": False,
"addresses": self.addresses,
}
},
Expand Down

0 comments on commit 4d0776d

Please sign in to comment.