Comments (3)
Hi @kinoute
Thanks for your feedback. The root cause is the single mount file kvrocks.conf
which is unable to be written, you can have a try at: config rewrite
in 2.5.0 and it should return the same error.
And this start error was introduced in #1776 which would try to rewrite the configuration after loading the namespaces. Maybe we should turn this error into a warning when starting the server.
You can workaround this issue by mounting the whole dir where kvrocks.conf exists to /var/lib/kvrocks
without the subPath kvrocks.conf
.
from kvrocks.
Thanks for the quick answer @git-hulk ! I was able to fix it with your workaround. I needed to create an initContainer for this as mounting a secret as volume is now read-only since Kubernetes 1.9.
For those who are interested, here is a working manifest:
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: kvrocks
namespace: sahar-svc
spec:
selector:
matchLabels:
run: kvrocks
serviceName: "kvrocks"
replicas: 1
template:
metadata:
labels:
app: kvrocks
run: kvrocks
spec:
initContainers:
- name: copy-kvrocks-conf
image: busybox
command: ["sh", "-c", "cp /tmp/kvrocks.conf /var/lib/kvrocks/"]
volumeMounts:
- name: kvrocks-config
mountPath: /tmp/kvrocks.conf
subPath: kvrocks.conf
- name: kvrocks-folder
mountPath: /var/lib/kvrocks
containers:
- name: kvrocks
image: apache/kvrocks:2.7.0
volumeMounts:
- name: kvrocks-folder
mountPath: /var/lib/kvrocks
- name: kvrocks
mountPath: /data
ports:
- containerPort: 6379
resources:
requests:
cpu: 1
memory: 2Gi
limits:
memory: 2Gi
volumes:
- name: kvrocks-folder
emptyDir: {}
- name: kvrocks
persistentVolumeClaim:
claimName: kvrocks
- name: kvrocks-config
secret:
secretName: kvrocks-config
from kvrocks.
@kinoute Thanks for your sharing. I would refer them here if other folks also suffer from this issue.
from kvrocks.
Related Issues (20)
- Memory limits on connections HOT 2
- Enable the new data type encoding by default HOT 2
- Introduce the key encoding version HOT 3
- Make the default namepace name changable HOT 8
- Move the performance benchmark to website HOT 3
- Optimize the implementation of IntervalSet intersection HOT 2
- [Build] Add supports for build kvrocks with UBSAN
- [Tools] Add a git commit hook for clang-format checking HOT 3
- Add option to INFO to return a json payload HOT 13
- should we start the compaction_checker_range thread if it's not configed. HOT 3
- TLS test case seems broken
- Improve consistency and isolation semantics by adding Context parameter to DB API HOT 19
- Improve error handling and logging for Retryable IO Errors HOT 13
- Add support for the TOUCH command HOT 2
- Potential data inconsistency issues? HOT 2
- Transaction with FlushDB:DeleteRange unsupported in WriteBatchWithIndex
- A new version of search key and metadata encoding
- Is stream column family useful to be a seperate cf instead of merging into subkey cf? HOT 4
- [OSPP 2024] Tracking issues: Enhance Kvrocks Transaction Syntax
- Improve and unify the RESP error message HOT 2
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 kvrocks.