graphscope-store
by GraphScope
GraphScope Store is a disk-based row-oriented multi-versioned persistent graph store and can be used to as a graph database service. GraphScope Store supports the popular graph query language -- Apache TinkerPop Gremlin. It's also named groot.
About this chart
GraphStore Charts
GraphScope Store is a new disk-based row-oriented multi-versioned persistent graph store.
TL;DR
$ helm repo add graphscope https://graphscope.oss-cn-beijing.aliyuncs.com/charts/
$ helm install my-release graphscope/graphscope-store
Introduction
This chart bootstraps a GraphScope Store cluster deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.12+
- Helm 3.1.0
- PersistentVolume(PV) provisioner support in the underlying infrastructure
Installing the Chart
To install the chart with the release name my-release:
$ helm repo add graphscope https://graphscope.oss-cn-beijing.aliyuncs.com/charts/
$ helm install my-release graphscope/graphscope-store
These commands deploy GraphScope Store on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Get GraphScope Store Endpoint
Note that it may take a few minutes for pulling image at first time, you can watch the status by running helm test many times.
# After installation, you can check service availability by:
$ helm test my-release
# Default, with kubernetes `NodePort` service type, you can get service endpoint by:
$ export NODE_IP=$(kubectl get nodes --namespace default -o jsonpath="{.items[0].status.addresses[0].address}")
$ export GRPC_PORT=$(kubectl get --namespace default -o jsonpath="{.spec.ports[0].nodePort}" services my-release-graphscope-store-frontend)
$ export GREMLIN_PORT=$(kubectl get --namespace default -o jsonpath="{.spec.ports[1].nodePort}" services my-release-graphscope-store-frontend)
$ echo "GRPC endpoint is: ${NODE_IP}:${GRPC_PORT}"
$ echo "GREMLIN endpoint is: ${NODE_IP}:${GREMLIN_PORT}"
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.
Note: The PersistentVolume remains even after the release was uninstalled. To delete the PV manually:
$ kubectl delete pvc -l app.kubernetes.io/instance=my-release
Parameters
Here we give a list of most frequently used parameters.
Common parameters
| Name | Description | Value |
|---|---|---|
| image.registry | Docker image registry | registry.cn-hongkong.aliyuncs.com |
| image.repository | Docker image repository | graphscope/graphscope-store |
| image.tag | Docker image tag | "" |
| image.pullPolicy | Docker image pull policy | IfNotPresent |
| image.pullSecrets | Docker-registry secrets | [] |
| clusterDomain | Default Kubernetes cluster domain | cluster.local |
| commonLabels | Labels to add to all deployed objects | {} |
| commonAnnotations | Annotations to add to all deployed objects | {} |
| javaOpts | Java options | "" |
| auth.username | Username | "" |
| auth.password | Password | "" |
| rpcMaxBytesMb | GRPC maximum message size | 4 |
| kafkaProducerCustomConfigs | Kafka producer max request size | "max.request.size:1048576000" |
Statefulset parameters
| Name | Description | Value |
|---|---|---|
| store.replicaCount | Number of nodes | 2 |
| frontend.replicaCount | Number of nodes | 1 |
| frontend.service.type | Kubernetes Service type | NodePort |
| coordinator.replicaCount | Number of nodes | 1 |
Kafka chart parameters
| Name | Description | Value |
|---|---|---|
| kafka.enabled | Switch to enable or disable the Kafka helm chart | true |
| kafka.replicaCount | Number of Kafka nodes | 1 |
| externalKafka.servers | Server or list of external Kafka servers to use | [] |
Configuration
See Customizing the Chart Before Installing. To see all configurable options with detailed comments, visit the chart's values.yaml, or run these configuration commands:
$ helm show values graphscope/graphscope-store
Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,
$ helm install my-release \
--set image.tag=latest graphscope/graphscope-store
Add multiple extra config to the component which is defined in the configmap by
--set extraConfig="k1=v1;k2=v2". Note we use ; to separate config items. For example,
$ helm install my-release \
--set extraConfig="k1=v1;k2=v2" graphscope/graphscope-store
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
$ helm install my-release -f values.yaml graphscope/graphscope-store
Tip: You can use the default values.yaml
Persistence
The GraphScope Store image stores the GraphScope Store data at the /var/lib/graphscope-store and configurations at the /etc/groot/groot.config, and coordinator meta information at the /etc/groot/my.meta path of the container.
The chart mounts a Persistent Volume volume at this location. The volume is created using dynamic volume provisioning by default. An existing PersistentVolumeClaim can also be defined for this purpose.
Pod affinity
This chart allows you to set your custom affinity using the XXX.affinity parameter(s). Find more information about Pod affinity in the Kubernetes documentation.
Troubleshooting
The java part use logback as logging library, and rust part use log4rs as logging library.
Both of them supports reload configuration periodically.
Inside the image, you could find
- the configuration for
logbackin/usr/local/groot/conf/logback.xml - the configuration for
log4rsin/usr/local/groot/conf/log4rs.yml
The application will apply the latest log configuration after at most 30 seconds, if these config files are modified.
Upgrading
$ helm upgrade my-release graphscope/graphscope-store
See helm upgrade for command documentation.
Deploy graphscope-store with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has graphscope-store 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 chartgraphscope-store is pinned at v0.28.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