-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lighter session timeout configuration. #1042
Comments
Hey, yes, these configurations are related LIGHTER_SESSION_TIMEOUT_INTERVAL is used for killing "forgotten" sessions, lighter check when the last statement was created and if it was created more than configured amount of time ago - lighter kills it. LIGHTER_SESSION_TIMEOUT_ACTIVE - prevents killing sessions if there are some uncompleted statements.
Regarding your |
Hi, So if I understand how things work now, the If so, I can tell you that Lighter killed my session when I had one statement that still didn't finish the process (spark job) even What can be wrong there? BTW 1, I would like to know your meaning of 'forgotten' sessions, are they forgotten by us? or by lighter? |
I've double-checked the code, it works as follows:
Do you suspect it works differently for you? Can you see
I mean forgotten by the user. Lighter should not forget about your sessions.
Yes, we'll update it. |
After setting the but just to let you know, when setting thank you :) |
Hi,
We are using Z2JH with sparkmagic kernel and Lighter (0.1.1) to create Spark sessions.
I faced an issue when I configured Lighter to kill the session after X time automatically when the session state was idle (not during data processing).
I found two environment variables that need to be taken care of, but the behavior was not as expected and I think the docs have some missing info or maybe there is a bug in Lighter.
LIGHTER_SESSION_TIMEOUT_INTERVAL - according to the docs, this configuration represents the session lifetime from the last statement creation.
I configured it to 2m for testing purposes and found it kills the session longer than 2 minutes from the last statement has finished the processing (~ 5 minutes). so I'm not sure what to expect here and how to measure it.
LIGHTER_SESSION_TIMEOUT_ACTIVE - as I understand, this configuration stands for if a statement is waiting (like pending?) in a queue while another statement is in process. when I configured the timeout interval to 2m (again, for testing purposes), Lighter killed the session no matter if the timeout active was "true" or "false".
can someone please explain some more about these configurations?
like:
Thank you
The text was updated successfully, but these errors were encountered: