Repository navigation
Vector Sidecar data-dir config #20860
|
We are planning to run vector as a sidecar for some critical application whose load is very high as compared to others. We are doing this to avoid CPU split meaning some pods consuming very large cpu as compared to others. However we want to know how should we configure data-dir. Can we have same data-dir shared between 2 vector pods or we should separate them out. Configs: |
Replies: 3 comments 2 replies
|
Hi @ShahroZafar , Each data directory should be separate: Vector assumes it has exclusive access to it.
I'm not sure I understand this part 🤔 You would want to ensure that the Vector process reading file X is using the data directory that has checkpoints for file X. |
|
Hi @ShahroZafar i have a question "I need to send the logs from permit PDP to vector aggregator using websocket like i want to add a websocket on pdp side which sends the logs to vector ip and add a sorce in vector which basically recieves the log" is it possible if it is how ? |
|
Each Vector instance needs its own backing directory for To resume from checkpoints after a restart, Vector needs access to both the saved state and the corresponding log files. If the replacement Pod’s include pattern no longer matches the old files, retaining their checkpoints will not make Vector read them. Adding the Pod name to |
Each Vector instance needs its own backing directory for
data_dir. Using the same path inside separate containers is fine as long as it points to separate storage.To resume from checkpoints after a restart, Vector needs access to both the saved state and the corresponding log files. If the replacement Pod’s include pattern no longer matches the old files, retaining their checkpoints will not make Vector read them. Adding the Pod name to
data_dirseparates state, but does not by itself prevent missing logs across Pod replacements.