Hi all, I'm currently researching ways for my team...
# troubleshooting
a
Hi all, I'm currently researching ways for my team to enable debug logging in our flink apps without having to bounce them, and we were looking into leveraging either JMX or some immediate IPC-like way to add a "listener" to our flink apps such that it can receive messages to enable/disable this flag. Does anyone have any good examples that they are able to share that functions similar to what I'm trying to achieve? We did consider leveraging a kafka topic and adding a source to our topology, but because we have many flink apps, this would be extremely tedious for us
r
Hi, when we say bounce means not restarting? Also you want logging to be enabled for all TMs to be in debug mode at one shot? If i understand log4j2 we can change logging level at runtime, so what if you give a signal to all TM and run a sidecar to modify log4j properties file…
d
a
@raghav tandon : 1. Yes, when I mean bounce I mean stopping the app manually and then starting it back up 2. Yes, but we are more interested in user code (i.e.
logger.debug(...)
) statements as opposed to logging from other parts like RocksDB The signal to TM and sidecar part is the thing I'd like to understand better in terms of approaches @Danny Cranmer that FLIP basically details my intended use case, thanks for sending that over! However, I see in the cwiki link that they have defined REST APIs for this use case. But how would a running Flink app be able to consume such a response in terms of a listener?
d
> @Danny Cranmer that FLIP basically details my intended use case, thanks for sending that over! However, I see in the cwiki link that they have defined REST APIs for this use case. But how would a running Flink app be able to consume such a response in terms of a listener? The FLIP proposal would not provide job level control, it would be a cluster wide config. This is not implemented yet so will likely not solve your problem in the short term. However it is an opportunity to get involved and put your requirements/use-case across.
r
@Ajay Sarjoo are you asking more about how to trigger a certain piece of code in all TM? Lets say you have log4j2 and you are able to achieve dynamic change programatically
a
Correct