graphscope-store

by GraphScope

Helm chartv0.28.0App 3.4.0

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

NameDescriptionValue
image.registryDocker image registryregistry.cn-hongkong.aliyuncs.com
image.repositoryDocker image repositorygraphscope/graphscope-store
image.tagDocker image tag""
image.pullPolicyDocker image pull policyIfNotPresent
image.pullSecretsDocker-registry secrets[]
clusterDomainDefault Kubernetes cluster domaincluster.local
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
javaOptsJava options""
auth.usernameUsername""
auth.passwordPassword""
rpcMaxBytesMbGRPC maximum message size4
kafkaProducerCustomConfigsKafka producer max request size"max.request.size:1048576000"

Statefulset parameters

NameDescriptionValue
store.replicaCountNumber of nodes2
frontend.replicaCountNumber of nodes1
frontend.service.typeKubernetes Service typeNodePort
coordinator.replicaCountNumber of nodes1

Kafka chart parameters

NameDescriptionValue
kafka.enabledSwitch to enable or disable the Kafka helm charttrue
kafka.replicaCountNumber of Kafka nodes1
externalKafka.serversServer 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 logback in /usr/local/groot/conf/logback.xml
  • the configuration for log4rs in /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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartgraphscope-store is pinned at v0.28.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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