Vector Sidecar data-dir config #20860
Replies: 2 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. |
Beta Was this translation helpful? Give feedback.
-
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 ? |
Beta Was this translation helpful? Give feedback.
-
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.
In the sidecar pattern we can have more than 1 pod running on the same node but we also want to limit that sidecar reads only its own logs so we have this in includes
"/var/log/pods/{{ $namespace }}_${VECTOR_SELF_POD_NAME}_*/**/*"
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.
Also since the include path has pod_name in it, if pod restarts, the path will change. So even if there is 1 pod on 1 node the files which are read will be different. How should we configure data-dir i.e. checkpointing in this case
Configs:
Beta Was this translation helpful? Give feedback.
All reactions