Доработать инструменты экспериментов: чередовать повторы, останавливать лестницу на первой проваленной ступени, задавать maxconn и CPU базы в сериях, записывать замер скорости хоста и контроль шума, сократить комментарии

This commit is contained in:
2026-11-04 12:39:04 +03:00
parent ce47c138e4
commit baa5995938
24 changed files with 253 additions and 240 deletions
+2 -3
View File
@@ -52,9 +52,8 @@ func (c *client) postMessage(chatID, token, text string, out any) error {
return c.do(req, token, http.StatusCreated, out)
}
// sendWithKey sends one attempt of a message under the given key on a
// connection of its own and reports the status, the message (on 201) and the
// replica that answered.
// sendWithKey sends one attempt on a connection of its own, so that the
// attempts of one key reach different replicas.
func (c *client) sendWithKey(chatID, token, key, text string) (int, chat.MessageResponse, string, error) {
var msg chat.MessageResponse
raw, err := json.Marshal(map[string]string{"text": text})