Git Product home page Git Product logo

Comments (5)

metalmatze avatar metalmatze commented on June 8, 2024
no server address resolved for
failed to create memcached client

This is most likely an issue with configured address. Did you start pods running memcached? Do you have Kubernetes Service for these that you can point this address to?
This is mostly a Kubernetes usage question more than a Thanos usage one.

from kube-thanos.

hareeshrao4839 avatar hareeshrao4839 commented on June 8, 2024

yes, thano-store, thano-store-0, thano-store-1, thano-store-2 these are all running as statefulset and its has svc also created. i just replaced MEMCHACHED_SERVICE block to svc name, then only initial mentioned came

level=info ts=2022-03-24T07:39:58.779840562Z caller=caching_bucket_factory.go:71 msg="loading caching bucket configuration"
level=error ts=2022-03-24T07:39:58.781341992Z caller=resolver.go:99 msg="failed to lookup SRV records" host=_client._tcp.thanos-store.thanos.svc.cluster.local err="no such host"
level=error ts=2022-03-24T07:39:58.781506043Z caller=main.go:132 err="no server address resolved for \nfailed to create memcached client\ngithub.com/thanos-io/thanos/pkg/store/cache.NewCachingBucketFromYaml\n\t/home/circleci/project/pkg/store/cache/caching_bucket_factory.go:92\nmain.runStore\n\t/home/circleci/project/cmd/thanos/store.go:260\nmain.registerStore.func1\n\t/home/circleci/project/cmd/thanos/store.go:195\nmain.main\n\t/home/circleci/project/cmd/thanos/main.go:130\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:225\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371\ncreate caching bucket\nmain.runStore\n\t/home/circleci/project/cmd/thanos/store.go:262\nmain.registerStore.func1\n\t/home/circleci/project/cmd/thanos/store.go:195\nmain.main\n\t/home/circleci/project/cmd/thanos/main.go:130\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:225\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371\npreparing store command failed\nmain.main\n\t/home/circleci/project/cmd/thanos/main.go:132\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:225\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371"

from kube-thanos.

metalmatze avatar metalmatze commented on June 8, 2024

Can you somehow exec into the container and check if thanos-store.thanos.svc.cluster.local is available from there? I think this is a configuration problem not a problem with thanos or kube-thanos.

from kube-thanos.

squat avatar squat commented on June 8, 2024

Hi @hareeshrao4839 I think the issue here is that the manifests under examples/manifests/all assume that a memcached server is running. This is maybe kind of a weird default inside of kube-thanos because it means that you can't deploy those manifests without deploying an additional, external component.

from kube-thanos.

kevinniu666 avatar kevinniu666 commented on June 8, 2024

Hi @hareeshrao4839 as squat mentioned above, you need to create memcached service manually,please refer to below yaml for reference:

apiVersion: v1
kind: Service
metadata:
  name: memcached-service
spec:
  selector:
    app: memcached
  ports:
    - protocol: TCP
      port: 11211
      targetPort: 11211
      name: client
  type: ClusterIP

suppose memcached service is running in thanos namespace.the config arg should be confiured as below:

            "addresses":
            - "dnssrv+_client._tcp.memcached-service.thanos.svc.cluster.local"

from kube-thanos.

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.