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

Example Analysis of PG creation process in ceph

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

Share

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

This article mainly shows you the "sample analysis of the process of creating PG in ceph", which is easy to understand and well-organized. I hope it can help you solve your doubts. Let me lead you to study and study the "sample analysis of the process of creating PG in ceph".

The pg of the main osd is created by monitor; call OSD::handle_pg_create (OpRequestRef op)

MOSDPGCreate* m = (MOSDPGCreate*) op- > get_req (); get PGid from message queue, possibly create more than one PG at a time

Require_mon_peer () / require_same_or_newer_map () determines the connection monitor, osdmap version number

For Loop to create PG

Osdmap- > pg_to_up_acting_osds calculate PG to add to the corresponding osd

Osdmap- > get_primary_shard calculates the master copy

If (can_create_pg (pgid)) if you can create a PG, submit * rctx.transaction to create a PG

Maybe_update_heartbeat_peers () updates hearbeat peer

The above is all the contents of the article "sample Analysis of the PG creation process in ceph". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more 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