Log Printing
Context
- Sharing: A 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 Turbo console. Create an SFS Turbo file system to store log 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 Turbo has been enabled.
Example Configuration
- Log in to the SFS Turbo console.
- In the upper right corner of the page, click Create File System.
- On the Create File System page, configure parameters as instructed.
- After the configuration is complete, click Create Now.
To mount a file system to Linux ECSs, see Mounting an SFS Turbo File System to Linux ECSs. To mount a file system to Windows ECSs, see Mounting an SFS Turbo File System to Windows ECSs.
- Configure the file system path as the log directory. It is recommended that each host use different log files.
- Start applications.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.