Log Printing
Context
- A shared file system is mounted to multiple service hosts and logs are printed concurrently.
- Large file size and small I/O: The size of a single log file is large, but the I/O of each log writing is small.
- Write I/O intensive: Write I/O of small blocks is the major service.
Configuration Process
- Log in to SFS Console. Create an SFS Turbo file system to store the log files.
- Log in to the ECS that functions as the compute node and mount the file system.
- Configure the log directory to the shared file system. It is recommended that each host use different log files.
- Start applications.
Prerequisites
- A VPC has been created.
- ECSs that function as head nodes and compute nodes have been created, and have been assigned to the VPC. For details about how to upload on-premises log files to SFS Turbo, see Migrating Data Using Direct Connect.
- SFS has been enabled.
Example Configuration
- Log in to SFS Console.
- In the navigation pane, choose SFS Capacity-Oriented. In the upper right corner of the page, click Create File System.
- On the Create File System page, set parameters as instructed.
- After the configuration is complete, click Create Now.
For details about how to mount a file system to an ECS running Linux, see Mounting an NFS File System to ECSs (Linux). For details about how to mount a file system running Windows, see Mounting an NFS File System to ECSs (Windows) and Mounting a CIFS File System to ECSs (Windows).
- Configure the log directory to the shared file system. It is recommended that each host use different log files.
- Start applications.
Last Article: Enterprise Website/App Background
Next Article: Other Operations
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.