Repository navigation
NodeFlow 2.1.0: настройки HAProxy ноды и редактор конфига - #16
Merged
Merged
Conversation
…plan, agent haproxy -c detail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Панель и Node Agent 2.1.0, HAProxy renderer v21, миграция
000055(аддитивная).Основано на #15 от @fesevu — настройки HAProxy для каждой ноды и ручной редактор конфигурации.
Что внутри
maxconn,nbthread,timeout connect/client/server) — в диалоге настроек ноды; пусто = значение по умолчанию.haproxy.cfg— отдельная страница/nodes/:id/haproxyна Monaco: подсветка, автодополнение, подсказки по директивам на русском, проверка на лету (POST /api/v1/nodes/{id}/config-lint), diff перед применением, история версий, возврат к сборке из UI.422 config_lint_failedсissues,"force": true— сохранить всё равно; итоговый барьер —haproxy -cна агенте.applyроняла каждый heartbeat (500 desired firewall listener plan is incomplete) — теперь порты берутся изbind.Missing LF on last line).haproxy -c→config-state.last_error_detail, в редакторе — ссылки на строки.Проверено на стенде (панель + нода, файрвол
apply): lint, 422/force, применение ручной ревизии (in_sync, heartbeat без ошибок, reload без рестарта), текст ошибкиhaproxy -c, возврат к сборке из UI.go test ./internal/..., фронтенд 33/33, сборка — ок.Closes #15
Co-authored-by: Artem Ishmukhamedov 105602239+fesevu@users.noreply.github.com