FastCFS concise and efficient access control

    The research and development of FastCFS V2.0 was started in March, and it took nearly 2 months to launch V2.0. In order to better connect virtual machines and K8s, V2.0 mainly implements storage pool and access permission control, and supports quotas.


    The core function supported by V2.0 is the user and permission system. For the application system, permission management is a basic function, and it is not a problem to implement. For basic software, in order to ensure high performance without relying on third-party components, the challenge is much greater. The implementation plan needs to be carefully designed, and the implementation details need to be carefully scrutinized.


    For a storage system, it is of course feasible to store data related to users, storage pools and access rights in a database such as mysql, but it is not important. The reasons are as follows: 1. The introduction of a third-party storage system increases deployment and operation and maintenance. Complexity; 2. The distributed file system itself is a storage system. Because user permissions are introduced into other storage systems, this approach will be very strange and logically cannot stand up to scrutiny.


   FastCFS does not rely on third-party storage systems, and saves user and permission data in the service component FastDIR. To support this more gracefully and flexibly, FastDIR supported file extension attributes (x-attribute) in mid-March.


   The access control of FastCFS adopts session-based distributed access control. The session is generated by the Auth server and distributed to the two service components of FastCFS, FastDIR server and FastStore server, thus realizing the local authentication of the session.The user authority system of FastCFS adopts centralized management and distributed verification, which achieves the ultimate performance.


   Another feature to share with you is that after the user permissions and quotas of FastCFS are modified, they will take effect in quasi-real time (within 1 second). Administrators can customize the time precision of user quota control (to prevent overuse), and the default is 10 seconds.


    Friends in need are welcome to download and try V2.0. FastCFS installation and configuration documentation, see gitee official website: https://gitee.com/fastdfs100/FastCFS

This article is shared from the WeChat public account - FastDFS Sharing and Exchange (fastdfs100).
If there is any infringement, please contact [email protected] to delete it.
This article participates in the " OSC Yuanchuang Project ", you are welcome to join and share with us.

{{o.name}}
{{m.name}}

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=324085092&siteId=291194637