apiVersion: batch/v1
kind: Job
metadata:
  name: neo4j-benchmark
  labels:
    app: neo4j-benchmark
spec:
  template:
    metadata:
      labels:
        app: neo4j-benchmark
    spec:
      restartPolicy: Never
      containers:
      - name: neo4j-benchmark
        image: eaybars/neo4j-benchmark
        imagePullPolicy: IfNotPresent
        env:
          - name: JMH_FORK
            value: "0"
          - name: JAVA_OPTIONS
            value: "-Xms512m -Xmx512m"
        args:
          - "-insert.product.file=/opt/graphdb-benchmark/meta_Kindle_Store.json.gz"
          - "-insert.product.commit=1"
          - "-insert.product.count=433000"
          - "-insert.product.measurementBatch=1000"
          - "-insert.product.reinitGraph=10000"
          - "-insert.relatedProduct.file=/opt/graphdb-benchmark/meta_Kindle_Store.json.gz"
          - "-insert.relatedProduct.commit=1"
          - "-insert.relatedProduct.count=433000"
          - "-insert.relatedProduct.measurementBatch=1000"
          - "-insert.relatedProduct.reinitGraph=10000"
          - "-insert.productCategory.file=/opt/graphdb-benchmark/meta_Kindle_Store.json.gz"
          - "-insert.productCategory.commit=10"
          - "-insert.productCategory.count=433000"
          - "-insert.productCategory.measurementBatch=1000"
          - "-insert.productCategory.reinitGraph=10000"
          - "-insert.review.file=/opt/graphdb-benchmark/reviews_Kindle_Store_5.json.gz"
          - "-insert.review.commit=20"
          - "-insert.review.count=982000"
          - "-insert.review.measurementBatch=1000"
          - "-insert.review.reinitGraph=10000"
          - "-query.rb=5"
          - "-query.rb.reinitGraph=1"
          - "-query.caul=5"
          - "-query.caul.reinitGraph=1"
