MySql——tables: Environment --- global_lsn #3774
-
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The global_lsn is for WAL(write ahead log) functionality. Currently the Environment table only used to record global_lsn. |
Beta Was this translation helpful? Give feedback.
-
If you set WAL to disable, the global_lsn will be always 0 |
Beta Was this translation helpful? Give feedback.
The global_lsn is for WAL(write ahead log) functionality.
The purpose of wal is to ensure data safety, such as insert/delete action.
Before data is serialize to disk(and record to meta service), WAL firstly store the data to local storage(under the /milvus/wal folder), if milvus crashed, the WAL can recovery the data at the next time milvus start.
So each insert/delete action has a id to WAL, we call it 'lsn'. Each collection has a latest lsn, recorded in meta system(in the Tables table). Latest lsn means the milvus has successfully consumed the insert/delete action which id equal the lsn.
For example, client invoke insert api 3 times, so there are 3 actions were recorded in WAL, their id…