[MXS-3919] Add `interactive_timeout` and `wait_timeout` inputs in the Query Editor settings Created: 2021-12-16 Updated: 2024-01-25 Resolved: 2024-01-02 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | maxgui |
| Affects Version/s: | None |
| Fix Version/s: | 24.02.0 |
| Type: | New Feature | Priority: | Major |
| Reporter: | Naresh Chandra | Assignee: | Duong Thien Ly |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Sprint: | MXS-SPRINT-196, MXS-SPRINT-197 |
| Description |
|
We set the timeout option to 300 seconds during the new DB connection, which is default. If the SQL editor session is idle(we are just keeping the DB connection without running the queries on the SQL GUI editor more than 300 seconds) then the backend connection is not closing after 300 seconds as expected. As a user after creating the connections to the Databases on the SQL editor, if we don't use the connection as per the timeout value then the backend connection must close from the DB. |
| Comments |
| Comment by Duong Thien Ly [ 2021-12-20 ] |
|
The `timeout` value in the editor is referring to the number of seconds it waits to create a connection to the database. Check REST API docs here |
| Comment by Naresh Chandra [ 2021-12-21 ] |
|
Hi Duong, If I keep SQL editor session idle then after sometime, sql editor should close the backend connection. |
| Comment by Duong Thien Ly [ 2021-12-21 ] |
|
The connection to the database is currently kept for 24 hours. After that, it'll be closed automatically. |
| Comment by Naresh Chandra [ 2021-12-22 ] |
|
Can't we reduce this time to 8 hours instead of 24 hours from the Maxscale end. |
| Comment by Duong Thien Ly [ 2021-12-22 ] |
|
This value is hard-coded in the GUI. Even we allow users to change the value. It won't solve your problem properly. The simplest way is to click the logout button from the menu in the right corner of the page. |
| Comment by Naresh Chandra [ 2021-12-22 ] |
|
Duong, thanks for the update. At least, can we make auto logout option. For example if we keep idle then after sometime if its logout from the browser automatically then it would be good. |
| Comment by Duong Thien Ly [ 2021-12-22 ] |
|
I think it was set to 8 hours a while ago but some customers want it to last longer since 8 hours is not enough. So we decided to set it to last for 24 hours. |
| Comment by Naresh Chandra [ 2021-12-22 ] |
|
okay, thanks for the update. |
| Comment by markus makela [ 2022-03-15 ] |
|
I'll convert this to a New Feature since this is expected behavior. |
| Comment by Naresh Chandra [ 2022-03-15 ] |
|
Thanks Markus. |