From 4d0776dba07b004fc8cb50482b5f9a7b56ad3d70 Mon Sep 17 00:00:00 2001 From: Marina Preskokova Date: Fri, 18 Oct 2024 13:11:00 +0300 Subject: [PATCH] Make possible to ban yqla\qt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: https://github.com/ytsaurus/ytsaurus/pull/851 commit_hash:126cf666fc066779f3d6c80296ed9bcd5e6651cc --- .../yt/environment/components/query_tracker/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/yt/python/yt/environment/components/query_tracker/__init__.py b/yt/python/yt/environment/components/query_tracker/__init__.py index 7f4c7262..62d664cc 100644 --- a/yt/python/yt/environment/components/query_tracker/__init__.py +++ b/yt/python/yt/environment/components/query_tracker/__init__.py @@ -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, } },