OverloadException в одном узле Кассандра - PullRequest
0 голосов
/ 28 мая 2018

Я прочитал эту страницу: https://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsRepairNodesHintedHandoff.html и определил, что OverloadedException в Cassandra связано с

"The coordinator tracks how many hints it is currently writing, and if the number increases too much, the coordinator refuses writes and throws the OverloadedException exception."

Но я используюодин узел и способен часто получать исключение перегрузки, так что может быть причиной исключения перегрузки в сингленод с Consistency as 1 and ReplicationFactor as 1?

РЕДАКТИРОВАНИЕ:

Всего подсказок Выполняется JMX

enter image description here

enter image description here

I checked in the code :

 private static void checkHintOverload(InetAddressAndPort destination)
    {
        // avoid OOMing due to excess hints.  we need to do this check even for "live" nodes, since we can
        // still generate hints for those if it's overloaded or simply dead but not yet known-to-be-dead.
        // The idea is that if we have over maxHintsInProgress hints in flight, this is probably due to
        // a small number of nodes causing problems, so we should avoid shutting down writes completely to
        // healthy nodes.  Any node with no hintsInProgress is considered healthy.
        if (StorageMetrics.totalHintsInProgress.getCount() > maxHintsInProgress
                && (getHintsInProgressFor(destination).get() > 0 && shouldHint(destination)))
        {
            throw new OverloadedException("Too many in flight hints: " + StorageMetrics.totalHintsInProgress.getCount() +
                                          " destination: " + destination +
                                          " destination hints: " + getHintsInProgressFor(destination).get());
        }
    }

1) Это единственный способ получить перегруженное исключение?
2) Почему я получаю исключение перегрузки в одном узле?
3) Когда этометод checkHintOverload вызывается в одном узле?

ПРИМЕЧАНИЕ :

1) Мое пространство ключей настроено с NetworkTopologyStrategy, Это будет причиной?: CREATE KEYSPACE test WITH replication = {'class': 'NetworkTopologyStrategy', 'datacenter_1': '1'} AND durable_writes = true;

2) hinted_handoff = включен в cassandra.yaml, Тем не менее, мне интересно, будет ли он вызывать подсказки в одном узле, если так, то почему?

3) уровень согласованности равен Кворуму в этомодин узел

Может ли какой-либо из трех параметров быть причиной этого?

...