terracotta
Terracotta Ehcache is an improved version of Java's de facto caching API, Ehcache. It has a powerful, streamlined, modernized caching API taking advantage of newer Java features as well as the capability to be used via the JSR-107 "JCache" API.
About this chart
Terracotta
The Terracotta 5.x OSS offering includes the following:
- Ehcache 3.x compatibility
- Distributed In-Memory Data Management with fault-tolerance via Terracotta Server (1 stripe – active with optional mirror)
- In memory off-heap storage - take advantage of all the RAM in your server
Quick Start
$ helm install <helm-repo>/terracotta
$ helm install stable/terracotta
Introduction
This chart bootstraps a Terracotta server deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.10+
Installing the Chart
To install the chart with the release name my-release:
$ helm install --name my-release <helm-repo>/terracotta
$ helm install --name my-release stable/terracotta The command deploys Terracotta on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
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
The following table lists the configurable parameters of the Terracotta chart and their default values.
| Parameter | Description | Default |
|---|---|---|
image.repository | Terracotta Image name | terracotta/terracotta-server-oss |
image.tag | Terracotta Image tag | {VERSION} |
image.pullPolicy | Image pull policy | Always |
replicaCount | Number of Terracotta members | 2 |
offheaps | Offheap resource defintions, as a list of {name, size, unit} | [{offheap-1, 512, MB}, {offheap-2, 256, MB}] |
nodeSelector | Terracotta Node labels for pod assignment | nil |
resources | CPU/Memory resource requests/limits | nil |
service.type | Kubernetes service type ('ClusterIP', 'LoadBalancer', or 'NodePort') | ClusterIP |
service.clusterIP | Kubernetes service ClusterIP | None |
service.terracottaPort | Kubernetes main service port | 9410 |
service.syncPort | Kubernetes sync service port | 9430 |
Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,
helm install --dry-run --name my-release --set replicaCount=4 --debug /terracotta
Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,
$ helm install --name my-release \
--set replicaCount=3 --set offheaps[0].name=otherOffheap --set offheaps[0].unit=GB --set offheaps[0].size=6 \
<helm-repo>/terracotta
$ helm install --name my-release \
The above command sets number of Terracotta nodes to 3, and it defines just 1 offheap resource named otherOffheap, 6 GB large
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
$ helm install --name my-release -f values.yaml <helm-repo>/terracotta
$ helm install --name my-release -f values.yaml stable/terracotta
Tip: You can use the default values.yaml
Deploy terracotta with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has terracotta 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 chartterracotta is pinned at v1.0.0 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