Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the use of Cache Expire in MDCache

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces what is the use of Cache Expire in MDCache. It is very detailed and has a certain reference value. Interested friends must finish reading it!

The handle_cache_expire () function in MDCache handles MCacheExpire class messages. The MDS process that sends MCacheExpire messages has experienced several inode, dir, and dentry timeouts in cache, so the MDS process that sends MCacheExpire messages needs to synchronize these messages to other MDS processes. The MDS process that receives the MCacheExpire class message first iterates through the realms array in the MCacheExpire class message, and saves the MCacheExpire class message to the delayed_expire array if the export_state of the MDS process is in EXPORTING/LOGGINGFINISH/WARNING/NOTIFYING. Iterate through the inodes array in the MDCacheExpire messages and call the inode_remove_replica () function to delete the inode information from the MDCache, then traverse the dirs array in the MDCacheExpire messages and call the dir- > remove_replica () function to delete the dir information from the MDCache, and finally iterate through the dentries array and call the dentry_remove_replica () function to delete the dentry information from the MDCache.

The above is all the content of this article "what is the use of Cache Expire in MDCache?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report