[MDEV-27167] system variable deferred-networking to resolve early initialization Created: 2021-12-04 Updated: 2022-02-15 Resolved: 2022-02-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Upgrades |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Major |
| Reporter: | Daniel Black | Assignee: | Sergei Golubchik |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
The problem of early initialization of MariaDB manifesting in a few ways.
Both these rely on the lack of TCP networking to prevent the user traffic occuring. The problem of a background mariadbd instance is:
The step between an initialization and a user accessible service is:
This MDEV proposes the addition of a system variable deferred_networking to address this. Its behaviour is:
These aspects allows a window for mariadb-upgrade and container based initialization (of user data, timezones) to occur. After this is finished setting of deferred_networking to 1 results in:
In the addition to the above:
Hopefully the complexity of this is minimal and can make 10.7, and possibly earlier. serg, what do you think of the concept? Any improvements? I'm happy to write it. A couple of notes:
|
| Comments |
| Comment by Sergei Golubchik [ 2021-12-06 ] |
|
I don't understand how the deferred networking can help Neither I see how it can help So, what is it for? What does it solve? |
| Comment by Daniel Black [ 2022-02-02 ] |
|
Resolved container use case with sub-optimal script based version checking, a temporary instance in --skip-grant-tables, and mariadb-upgrade --upgrade system-tables (only). monty does not want:
So MDEV-27613 now has two options that reference this. |
| Comment by Michael Widenius [ 2022-02-15 ] |
|
We don't need to start two servers for the normal case. We also don't need to skip networking on having another tempoary socket. |
| Comment by Michael Widenius [ 2022-02-15 ] |
|
Feedback already needed. This task is superseded by MDEV-27613. |
| Comment by Michael Widenius [ 2022-02-15 ] |
|
MDEV-27613 is the more proper way to solve it (as it has to be done in 10.2/10.3) |