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

  1. Log in to the SFS Turbo console and create an SFS Turbo file system to store the log files.
  2. Log in to the cloud server that functions as the compute node and mount the file system.
  3. Configure the file system path as the log directory. It is recommended that each host use different log files.
  4. 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

  1. Log in to the SFS Turbo console.
  2. In the upper right corner of the page, click Create File System.
  3. On the Create File System page, configure parameters as instructed.
  4. 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).

  5. Configure the file system path as the log directory. It is recommended that each host use different log files.
  6. Start applications.