Skip to content

MySql——tables: Environment --- global_lsn #3774

Discussion options

You must be logged in to vote

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…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Haohao966
Comment options

Answer selected by sahuang
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants