Giter Site home page Giter Site logo

Comments (5)

MojtabaTajik avatar MojtabaTajik commented on June 11, 2024

Do you have any extra info to reproduce the issue? I can't reproduce it.

image

from garnet.

sandyplace avatar sandyplace commented on June 11, 2024

I figured it out, I was trying to reduce the memory footprint as I noticed it was taking up 10gb in my local machine dev environment using docker/k8s. For some reason the startup parameters I was using was returning no errors at startup. I was able to index my data into GarnetServer just fine but the keys command was behaving as above. I was passing the following configuration to try to create a smaller footprint for local testing:

apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: redis
spec:
  serviceName: redis
  replicas: 1
  selector:
    matchLabels:
      app: redis
  template:
    metadata:
      labels:
        app: redis
    spec:
      containers:
        - name: redis
          image: ghcr.io/microsoft/garnet
          imagePullPolicy: IfNotPresent
          ports:
            - containerPort: 6379
              name: client
          command: [
              "/app/GarnetServer",
              "--index",
              "1073742849",
              "--checkpointdir",
              "/data",
              "--aof",
              "--port",
              "6379",
            ]
          resources:
            requests:
              memory: "3Gi"
              cpu: "1000m"
            limits:
              memory: "3Gi"
              cpu: "4000m"
          env:
            - name: POD_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
          volumeMounts:
            - name: redis-data
              mountPath: /data
              readOnly: false
  volumeClaimTemplates:
    - metadata:
        name: redis-data
      spec:
        storageClassName: ssd
        accessModes:
          - ReadWriteOnce
        resources:
          requests:
            storage: 1Gi
---
apiVersion: v1
kind: Service
metadata:
  name: redis-svc
spec:
  type: LoadBalancer
  ports:
    - name: redis-port
      port: 6379
      protocol: TCP # default; can also specify UDP
  selector:
    app: redis

from garnet.

vazois avatar vazois commented on June 11, 2024

Are you still facing the issue above or is it resolved?

from garnet.

vazois avatar vazois commented on June 11, 2024

It looks like the issue was result of configuration issue. Closing the issue until otherwise.

from garnet.

cduluCNB avatar cduluCNB commented on June 11, 2024

This seems to be the related to #143, this memory usage is by design and configurable.

from garnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.