Updated on 2025-12-10 GMT+08:00
Log Printing
Context
General-Purpose File System can provide multiple service nodes for shared log output directories, facilitating log collection and management of distributed applications. Features of such services are as follows:
- Sharing: A general-purpose file system is mounted to multiple service hosts and logs are printed concurrently.
- Large file size and small I/Os: The size of a single log file is large, but the I/O of each log write is small.
- Intensive write I/Os: Most service I/Os are write I/Os of small blocks.
Configuration Process
- Log in to the SFS console and create a general-purpose file system to store the prepared files.
- Log in to the cloud server that functions as the compute node and mount the file system.
- Configure the file system path as the log directory. It is recommended that each host use different log files.
- Start applications.
Prerequisites
- A VPC has been created.
- Cloud servers that function as the head node and compute node have been created and are in the created VPC.
- SFS has been enabled.
Example Configuration
- Log in to the SFS console.
- In the upper right corner of the page, click Create File System.
- On the page for creating a file system, configure parameters as instructed.
- After the configuration is complete, click Create Now.
For how to mount a file system to Linux ECSs, see Mounting a General-Purpose File System to Linux ECSs.
- Configure the file system path as the log directory. It is recommended that each host use different log files.
- Start applications.
Parent topic: Typical Applications
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot