Updated on 2025-12-12 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.
- 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
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.