Comments (5)
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.
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.
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.
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.
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)
- Support specify the annotations for SAs HOT 4
- Where is Thanos compactor? and ruler? HOT 1
- Cannot connect to prometheus-operated HOT 3
- Can't save db with objectstorage( Aliyun OSS)
- Add release process to Thanos Docs / automation
- The `manifests` directory is outdated HOT 1
- Can't get notifications from GitHub App HOT 1
- DATA LOSS: thanos-compact deduplication is experimental and should not be enabled by default
- Support creating PrometheusRule
- Can not quick start when following up the tutorials
- PodDistruptionBudget should be added for store and query
- Possible misconfiguration with rules and serviceMonitor
- Thanos Support Policy
- Add NetworkPolicy to all components
- Difference between the Bitnami Helm Chart and Kube-Thanos HOT 1
- Cannot upgrade thanos-receive-router since the generated manifest include the version in the selector.
- Store stopped and exited before terminationGradePeriod is done
- Stateless Ruler requires objectStorageConfig definition / Ruler fails to start
- Thanos-store: Store Pod is not able to load certain blocks from object storage HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kube-thanos.