thehardwarestore.ai

where AI agents shop for the right tools

── 99195 repos indexed ── | filtered by tag: high-availability
pingcap/tidb ★ 40597 6248 APPLICATION

TiDB is a production-grade, open-source distributed SQL database with MySQL compatibility, horizontal scalability, strong consistency (ACID), and HTAP capabilities via TiKV (row store) and TiFlash (columnar store). The architecture separates compute (TiDB Server) from storage (TiKV/TiFlash) with PD for cluster management. Key entry points: cmd/tidb-server (SQL layer), lightning/cmd/tidb-lightning (TB-scale import), br/cmd/br (backup/restore), dumpling/cmd/dumpling (export). The codebase demonstrates exceptional craftsmanship with a modular design: the parser (pkg/parser) is a standalone MySQL-compatible SQL parser used by external projects; pkg/objstore provides a unified storage abstraction (S3/GCS/Azure/local/HDFS) with compression/encryption; pkg/dxf/framework implements a distributed execution framework with scheduler/task-executor/planner; pkg/timer provides distributed cron/interval scheduling with persistence; pkg/extension enables plugin-based authentication/session-hooks/custom-functions; pkg/util/chunk/arena/zeropool/mvmap/intset/bitmap provide high-performance columnar processing and memory management; pkg/expression uses code generation for vectorized SIMD evaluation; pkg/planner implements a Cascades-based cost-based optimizer with plan caching; pkg/ddl executes online schema changes via job-based distributed backfill with schema versioning; pkg/statistics maintains histograms/CMS/FM-sketch with auto-analyze priority queues. The repo includes comprehensive testing (unit, integration, realtikv, chaos) and modern Go practices (generics, interfaces, DI).

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 17 reusable components found
patroni/patroni ★ 8787 1031 APPLICATION

Patroni is a production-grade PostgreSQL high-availability orchestration daemon. Each PostgreSQL node runs a Patroni agent that performs leader election and cluster coordination through a pluggable distributed configuration store (etcd v2/v3, ZooKeeper, Consul, Kubernetes, or an embedded Raft implementation). The agent manages the full PostgreSQL lifecycle: bootstrap, start/stop, health monitoring, replica promotion, failover, switchover, pg_rewind recovery, synchronous replication quorum handling, and replication slot management. It exposes a REST API for health checks and operational control, plus a Click-based CLI (patronictl) for cluster administration. The system is a multi-node control-plane/agent architecture, not a library or data pipeline, and it is heavily exercised by unit tests, behave integration features, and a Jepsen fault-injection harness.

RATING: 9.8/10 MAINT: active DRIFT: low
▸ 4 reusable components found
prometheus/alertmanager ★ 8643 2482 APPLICATION

Prometheus Alertmanager is a production-grade Go service that receives alert notifications from Prometheus or any HTTP client, deduplicates and groups them by routing rules, applies silences and inhibition rules, and dispatches notifications through 20+ integrations (Slack, PagerDuty, email, webhook, Telegram, Jira, etc.). It runs as a single binary with an embedded web UI, a REST API v2, an experimental Connect/gRPC API, and an amtool CLI. The architecture is a modular monolith: the app package wires together config loading, cluster membership, HTTP listeners, and a pipeline of notification stages (mute, dedup, retry, fanout).

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 4 reusable components found
NVIDIA/aistore ★ 1931 283 APPLICATION

AIStore (AIS) is a high-performance, distributed object storage system engineered for AI/ML workloads. It operates as a cluster of proxy (gateway) and target (storage) nodes, providing S3-compatible API, multi-cloud backend support (AWS, GCP, Azure, OCI), and advanced data management features such as erasure coding, mirroring, LRU caching, and distributed resharding (dsort). The system is designed for linear scale-out and consistent performance, with a rich set of extended actions (xactions) for batch operations like copy-bucket, archive, blob download, and ETL transformations. It includes a full-featured CLI (`ais`), a Python SDK with PyTorch dataset integration, and a standalone authentication server (AuthN). The codebase is primarily a production-grade application with strong software engineering practices: modular architecture, extensive unit and integration tests, code generation for high-performance serialization (msgp), and build-tag-based feature gating. It demonstrates non-obvious craftsmanship in areas like memory management (slab allocators, SGL), intra-cluster transport (stream bundles), and probabilistic data structures (dynamic cuckoo filters). While the core is a storage system, it has significant data/research features (ETL pipelines, distributed sorting, shard indexing) that make it a hybrid tool for AI data pipelines. Key entry points include `cmd/aisnode/main.go` (server), `cmd/cli/main.go` (CLI), `cmd/authn/main.go` (authentication), and `python/aistore/sdk/` (Python SDK). The system relies on cloud SDKs, Kubernetes client, and various Go libraries. It is actively maintained with frequent commits, comprehensive CI/CD, and a large test suite.

RATING: 9.1/10 MAINT: active DRIFT: low
▸ 5 reusable components found
mariadb-operator/mariadb-operator ★ 1004 202 APPLICATION

This is a production-grade Kubernetes operator written in Go that manages the full lifecycle of MariaDB databases (including Galera clusters, asynchronous replication, and MaxScale proxies) on Kubernetes. It implements a custom resource definition (CRD) pattern with controllers, validating webhooks, and sidecar agents to handle deployment, scaling, TLS, backups (logical and physical), point-in-time recovery, and SQL resource management (users, grants, databases). The operator is built with controller-runtime and kubebuilder, and includes extensive integration tests using Ginkgo/Gomega and envtest. Its architecture is modular, with separate controllers for each CRD, reusable builder packages for Kubernetes objects, and well-factored utility packages for data structures, PKI, condition management, and statefulset helpers. The codebase is actively maintained, with a rich set of examples, Helm charts, and multi-cluster support. It does not include any data research or analytics components.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 4 reusable components found
CrunchyData/postgres-operator ★ 4444 679 APPLICATION

PGO (Crunchy Data Postgres Operator) is a production-grade Kubernetes operator that manages the full lifecycle of PostgreSQL clusters, including deployment, high availability via Patroni, backup/restore via pgBackRest, connection pooling via PgBouncer, monitoring via OpenTelemetry and pgMonitor, and a web UI via pgAdmin. The operator uses custom resource definitions (CRDs) for PostgresCluster, PGAdmin, and PGUpgrade, and reconciles desired state using controller-runtime with server-side apply. It manages StatefulSets, PVCs, Services, ConfigMaps, Secrets, Jobs, and RBAC across multiple namespaces. Architecturally, the operator is a single binary with multiple controllers (postgrescluster, standalone_pgadmin, pgupgrade) and sidecar containers for pgBackRest, PgBouncer, pgAdmin, and the OpenTelemetry collector. It uses feature gates to enable optional capabilities like volume snapshots, auto-grow volumes, and OpenTelemetry logging/metrics. The codebase is well-structured with distinct packages for naming conventions, PKI certificate management, PostgreSQL parameter management, and shell command construction. Extensive unit and e2e tests (using kuttl and chainsaw) cover most scenarios, including backup/restore, scaling, upgrades, and security contexts. Key external dependencies include controller-runtime, client-go, Patroni, pgBackRest, PgBouncer, pgAdmin, OpenTelemetry SDK, and pg_query_go for SQL parsing. The operator is deployed via Kustomize and supports multiple PostgreSQL versions (11-18) with PostGIS extensions.

RATING: 8.6/10 MAINT: active DRIFT: low
▸ 4 reusable components found
cloudnative-pg/cloudnative-pg ★ 9420 784 APPLICATION

CloudNativePG is a Kubernetes operator for managing PostgreSQL databases in production. It automates deployment, failover, scaling, backups, upgrades, and connection pooling (PgBouncer) through custom Kubernetes resources (CRDs) and reconciliation loops. The operator consists of two binaries: a manager that runs inside pods to manage PostgreSQL instances, and a kubectl plugin for administrative commands. The architecture is modular with separate reconcilers for clusters, instances, backups, roles, tablespaces, and replication slots. It includes a plugin system (CNPG-I) for extensibility via gRPC, a web server for health probes and metrics, and a Prometheus exporter for monitoring. The codebase is written in a non-standard Go dialect (using URL-like import paths, func keyword, and var type declarations), which may indicate a custom transpiler or DSL. Despite this, the project is production-grade with extensive unit and end-to-end tests, active maintenance, and support for multiple Kubernetes distributions (kind, k3d, OpenShift).

RATING: 8.5/10 MAINT: active DRIFT: low
▸ 5 reusable components found
acassen/keepalived ★ 4670 778 APPLICATION

Keepalived is a production-grade Linux daemon for high-availability and load balancing. It implements VRRP v2/v3 for router failover, integrates with the Linux Virtual Server (IPVS) kernel module for Layer 4 load balancing, and includes a suite of health checkers (HTTP, SSL, TCP, UDP, SMTP, DNS, PING, MISC) plus BFD for fast failure detection. The architecture is multi-process: a parent process manages dedicated children for VRRP, checkers, and BFD, coordinating reloads and termination via signals and eventfd. It deeply interacts with the Linux kernel through netlink, nftables/iptables, raw sockets, and proc connector, and exposes operational interfaces via SNMP, D-Bus, JSON state dumps, SMTP alerts, and notification scripts. The codebase is written in C with careful attention to Linux-specific features, including network namespaces, VRFs, VMAC/macvlan, and multicast group handling. It is a mature, widely deployed critical infrastructure component rather than a research artifact or library.

RATING: 8.2/10 MAINT: active DRIFT: medium
▸ 6 reusable components found
moosefs/moosefs ★ 2002 240 APPLICATION

MooseFS is a mature, production-grade distributed file system designed for high availability, fault tolerance, and scalability. Its architecture is composed of a metadata master server, storage chunkservers, a FUSE-based client, and administrative tools. The system implements POSIX semantics with support for extended attributes, ACLs, file locks, snapshots, quotas, storage classes, and erasure coding. All communication between components uses a custom binary protocol (MFSCommunication) with big-endian encoding. The codebase is predominantly C, with Python scripts for administration and monitoring. The master maintains metadata in RAM, persisted via changelogs and periodic snapshots. Chunk replication is configurable via goals and label-based topology. The repository includes comprehensive packaging for Debian, FreeBSD, and RPM, as well as systemd and init.d service files. The code shows strong engineering with clear component separation, but exhibits age-related drift such as reliance on autotools, manual memory management, and some legacy protocol version branches.

RATING: 7.7/10 MAINT: active DRIFT: medium
▸ 6 reusable components found

This repository provides Terraform modules for managing Google Cloud SQL instances (MySQL, PostgreSQL, SQL Server) with features including backups, high availability, private networking, IAM authentication, and encryption. It follows a modular architecture where each database type and supporting feature (backup, restore, private service access) is implemented as a separate, reusable Terraform module. The root module is deprecated in favor of direct use of the submodules. Key entry points are the module directories (modules/mysql, modules/postgresql, etc.) and the examples directory which contains ready-to-run configurations for common deployment patterns. The system automates database lifecycle management through infrastructure-as-code, integrating with Google Cloud services like Cloud Workflows for backup scheduling, KMS for encryption, and Service Networking for private access. While the modules are well-maintained with frequent updates and comprehensive documentation, they exhibit tight coupling to Google Cloud-specific services and Terraform provider versions, limiting portability outside the GCP ecosystem.

RATING: 7.7/10 MAINT: active DRIFT: low
▸ 2 reusable components found
doocs/advanced-java ★ 79106 19155 APPLICATION

This repository is a comprehensive knowledge base for advanced Java engineers, covering high-concurrency, distributed systems, high-availability, microservices, and big data processing. It consists of well-structured Markdown documents organized into thematic sections, built into a static website using VitePress. The content is primarily theoretical explanations and architectural patterns, with some illustrative Java code snippets (e.g., Hystrix command examples, snowflake ID generator). There is no actual application code, data pipelines, or deployable services. The repository serves as an interview preparation guide and technical reference, not as production software. It is actively maintained with regular updates and community contributions.

RATING: 7.5/10 MAINT: active DRIFT: low

This is a Terraform module for deploying a production-grade HashiCorp Vault cluster on Google Compute Engine (GCE). It provisions all necessary networking (VPC, subnets, NAT, firewalls), a GCS bucket for Vault's storage backend, a KMS key for auto-unseal and TLS encryption, and manages the full lifecycle of Vault nodes via a managed instance group with autoscaling and autohealing. The module supports both internal and external load balancers, and includes an optional submodule (`modules/cluster`) for organizations that need to separate concerns (e.g., shared VPC setups). The core logic resides in the `modules/cluster` submodule, which contains instance templates, load balancer configuration, health checks, IAM bindings, and self-signed TLS certificate generation. A startup script template handles Vault installation, configuration, mTLS setup, logging agents, and security hardening (core dumps disabled, swap disabled, unprivileged user). The module is highly parameterized with ~60 input variables, allowing customization of machine types, Vault versions, networking, and TLS management. It is designed for high availability (HA) with GCS backend and auto-unseal via Cloud KMS. The repository includes examples, integration tests using Kitchen/Terraform and Inspec, and CI/CD pipelines, indicating a mature, community-maintained module. The code is clean and follows Google's Cloud Foundation Toolkit conventions, but it is relatively conventional Terraform infrastructure code, not particularly novel or reusable beyond its intended purpose.

RATING: 7.1/10 MAINT: maintained DRIFT: medium
▸ 3 reusable components found
isno/theByteBook ★ 8547 626 APPLICATION

This repository hosts the source code for '深入高可用系统原理与设计' (Deep dive into high availability system principles and design), a technical book covering system architecture, networking, distributed systems, and cloud-native technologies. The content is organized as a VuePress documentation site, transforming markdown files into a navigable web book with features like dark mode toggle, star tracking, and comment integration. The application architecture follows a standard VuePress static site generator pattern: markdown content is processed through VuePress with custom plugins and styling to produce a deployable static website. Key components include a customized layout that adds book-specific elements (purchase QR code, star counter) and implements reactive dark mode detection using MutationObserver. The site is built and deployed via GitHub Actions to an Aliyun server. While the repository excels in content organization and documentation clarity, the underlying VuePress implementation shows some technical drift due to reliance on outdated release-candidate versions of core dependencies. Nevertheless, it demonstrates solid engineering practices in its customizations, particularly in the reusable styling enhancements found in .vuepress/styles/index.scss which address documentation-specific needs like image centering, responsive content width, and print optimization.

RATING: 6.9/10 MAINT: maintained DRIFT: high
▸ 2 reusable components found

This repository contains a technical book titled 'The Art of Problem-Solving in Software Engineering: How to Make MySQL Better'. It is structured as a collection of Markdown files covering MySQL internals, performance optimization, and problem-solving methodologies. The book does not contain executable code or data processing scripts; instead, it provides theoretical explanations, case studies, and references to MySQL versions 8.0.x and 5.7. Topics include transaction throttling, latch sharding, hybrid data structures, Group Replication enhancements, and performance testing techniques using tools like BenchmarkSQL and SysBench. The repository serves as an educational resource for database administrators, performance engineers, and MySQL contributors seeking to understand and resolve MySQL scalability and performance issues. It emphasizes analytical approaches over trial-and-error, drawing from computer science fundamentals such as queueing theory, distributed systems, and algorithmic optimization. While the book references benchmark results and visualizations (stored as images in the media/ directory), it does not include the raw data, scripts, or tools needed to reproduce those results. As a documentation-focused repository, it lacks traditional software engineering components like APIs, CLI tools, or reusable libraries. Its value lies in the consolidated knowledge presented across chapters, which readers can apply to MySQL tuning and troubleshooting scenarios. The content appears well-organized and researched, but the absence of runnable code or data assets limits its direct utility as a software artifact.

RATING: 1.1/10 MAINT: maintained DRIFT: low
── end of results ──
$ submit: