ha
Helm chartv0.1.5App 0.0.14
HA, a highly available leaderless SQLite cluster powered by embedded NATS JetStream server
About this chart
Ha Helm Chart
HA is an highly available leaderless SQLite cluster powered by embedded NATS JetStream server
Features
- 🔌 Connect via HTTP API, PostgreSQL Wire Protocol, or MySQL Wire Protocol
- 🔁 Replicate data using embedded or external NATS server
- 📝 Create live local read/write replicas with go-ha database/sql driver
- 📚 Create live local read replicas with ha-sync SQLite extension
- 🔄 Supports Change Data Capture (CDC)
- ⚙️ Configure custom strategies for resolving replication data conflicts
- 📖 Full documentation: https://litesql.github.io/ha/
Get Repo Info
helm repo add litesql https://litesql.github.io/helm-charts
helm repo update
See helm repo for command documentation.
Installing the Chart
To install the chart with the release name my-release:
helm install my-release litesql/ha
Uninstalling the Chart
To uninstall/delete the my-release deployment:
helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
| Parameter | Description | Default |
|---|---|---|
db.dsn | DataSource Name | file:/data/ha.db?_journal=WAL&_timeout=5000&_sync=NORMAL |
db.concurrent_queries | Number of concurrent queries | 50 |
db.extensions | List of SQLite extensions to load | `` |
log_level | Log level (info, warn, error, debug) | info |
nats.enabled | Enable/disable embedded NATS server | true |
nats.logs | Show embedded NATS logs | false |
nats.user | Embedded NATS username | `` |
nats.pass | Embedded NATS password | `` |
nats.config | Override default NATS config | see values.yaml |
pgwire.enabled | Enable/disable Postgres Wire server | true |
pgwire.user | PostgreSQL Wire Porocol username | ha |
pgwire.pass | PostgreSQL Wire Porocol password | ha |
pgwire.cert | PostgreSQL Wire Porocol certificate | `` |
pgwire.key | PostgreSQL Wire Porocol certificate key | `` |
mysql.enabled | Enable/disable MySQL Wire server | true |
mysql.port | MySQL Wire Protocol port | 3306 |
mysql.user | MySQL Wire Protocol username | ha |
mysql.pass | MySQL Wire Protocol password | ha |
replicaCount | Number of instances | 3 |
relication.max_age | Replication stream max age | 24h |
relication.stream | Replication stream name | ha_replication |
relication.timeout | Replication publisher timeout | 15s |
relication.url | URL to connect to external NATS for replication | `` |
storage.size | Storage size | 10Gi |
storage.className | Storage class name | standard |
stream.replicas | Number of stream replicas | 1 |
Deploy ha with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ha on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartha is pinned at v0.1.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply