Updated on 2024-11-04 GMT+08:00
Log Printing
Context
SFS Turbo 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 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 and create an SFS Turbo file system to store the 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. For details about how to upload on-premises log files to SFS Turbo, see Migrating Data to SFS Turbo Using Direct Connect.
- 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 NFS File System to ECSs (Linux).
- 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