Skip to content

Inconsistent Raft Latency on Different Infrastructures #578

Closed
@aminst

Description

@aminst

Issue Summary

I've encountered an issue with HashiCorp's Raft library where I observe inconsistent Raft latencies across different infrastructures. This issue seems specific to HashiCorp Raft, as I've successfully used Etcd on the same infrastructure without encountering similar problems.

Description

I have extensively tested the HashiCorp Raft library on three different infrastructures: my local machine, physical servers, and GCP (Google Cloud Platform). While I don't encounter issues with other communications, I'm experiencing significant differences in Raft replication latencies.

  1. On physical machines and my local machine, I'm observing a replication latency of approximately 150 ms, even for small objects. This latency is considerably higher than expected and not ideal for my use case.
  2. On GCP, the replication latency is significantly lower, approximately 10ms, which is acceptable for my requirements.

This inconsistency in replication latency is puzzling, as I would expect more uniform behavior across different infrastructures, especially when using the same Raft library.

Environment

  • HashiCorp Raft Library Version: v1.5.0
  • Infrastructure:
    • Local Machine: MacBook Air, Apple M1, 2020
    • GCP: e2-medium, Intel Broadwell, x86/64, Ubuntu 20.04
    • Physical Servers: 2x Intel E5-2620v2 (12 physical cores), 32 GB memory, interconnect 10GbE, Ubuntu 20.04

Steps to Reproduce

Use the Raft Example and test the replication latency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions