Skip to main content

Manage instances

This guide explains how to manage running instances in the PostgreSQL service.

View instance list

You can check the list of instances included in a running PostgreSQL instance group. For details on the relationship between instance groups and instances, refer to Key Concepts.

  1. Navigate to the KakaoCloud Console > Data Store > PostgreSQL menu.

  2. Select the PostgreSQL instance group whose instance list you want to view in the Instance Group menu.

  3. Go to the Instance menu.

    FieldDescription
    Instance nameName of the PostgreSQL instance entered during creation
    AZAvailability zone information where the instance is created
    StatusCurrent status of the PostgreSQL instance
    - See Instance lifecycle and status values for details
    Availability stateData replication status among PostgreSQL instances (applies only to high availability)
    - See Instance availability state for details
    RoleRole of the instance
    - See Instance availability configuration and roles for details
    Instance typePostgreSQL instance type selected during creation
    Storage sizeBase/log storage size specified during creation
    UptimeTime elapsed since the instance was last updated (e.g., due to creation, restart, or failover)
    Creation dateDate and time when the instance was created

Monitor instances

The Monitoring tab allows you to view monitoring results for PostgreSQL instance groups.

  1. Navigate to the KakaoCloud Console > Data Store > PostgreSQL menu.

  2. Select the PostgreSQL instance group you want to monitor in the Instance Group menu.

  3. Go to the Monitoring tab.

    FieldDescription
    Monitored instanceSelect the instance to monitor
    MetricsSelect the metrics to view.
    - Options: PostgreSQL, CPU, Memory, Filesystem, Disk, Network
    - All metrics are displayed by default.
    - Multiple selections are allowed.
    Data durationPeriod of data displayed in the monitoring graph.
    - Options: 1 hour (default), 3 hours, 12 hours, 1 day, 7 days
    View modeSet the layout of the monitoring graph view.
    - Options: Single column, two columns, three columns
    Auto-refresh intervalSet the interval for auto-refreshing the monitoring graph.
    - Options: No auto-refresh (default), 10 seconds, 30 seconds, 1 minute, 5 minutes
    Manual refreshClick to refresh the monitoring results manually

Monitoring metrics

CategoryMetricDescription
PostgreSQLConnections (count)Number of PostgreSQL connections
PostgreSQLActive connections (count)Number of active PostgreSQL connections
PostgreSQLLock sessions (count)Number of PostgreSQL lock sessions
PostgreSQLDeadlocks (count)Number of PostgreSQL deadlocks
PostgreSQLActive transactions (count)Number of active PostgreSQL transactions
PostgreSQLReplication lag (seconds)Replication lag time in seconds
PostgreSQLBuffer hit ratio (%)PostgreSQL buffer hit ratio
PostgreSQLVacuum XIDPostgreSQL vacuum XID measured per database
PostgreSQLTemporary file usage (%)Temporary file usage measured per database
CPUTotal usage (%)Total CPU usage over time
MemoryTotal usage (%)Total memory usage over time
MemoryUsage by type (bytes)Memory usage by type over time
FilesystemTotal usage (%)Total filesystem usage over time
FilesystemTotal usage (bytes)Filesystem usage in bytes over time
FilesystemInode usage by mount (%)Filesystem inode usage by mount over time
DiskRead bytes (bytes/sec)Disk IO read usage over time
DiskWrite bytes (bytes/sec)Disk IO write usage over time
DiskRead IOPS (IO/sec)Disk IO read operations per second
DiskWrite IOPS (IO/sec)Disk IO write operations per second
NetworkRX per interface (bytes)Network RX usage per interface over time
NetworkTX per interface (bytes)Network TX usage per interface over time
NetworkRX per interface (PPS)Network RX packets per second per interface
NetworkTX per interface (PPS)Network TX packets per second per interface

View instance logs

You can view PostgreSQL logs in the console using the Log Explorer provided by the KakaoCloud Monitoring service.

  1. Navigate to the Monitoring menu in the KakaoCloud Console.
  2. Click the Explorer tab, then select PostgreSQL in the Log Explorer.
  3. Check the query period and input the content to filter logs in Log Filter. File path filters are not currently supported.
  4. Once the search conditions are set, view the search results as charts and log lists.
info

For more details on using the Log Explorer, refer to the Log Explorer documentation.

Restart PostgreSQL

You can restart PostgreSQL for running instances.

  • Restart is not available for instances with the status Pending, Starting, or Terminating.
  • Restarting a primary instance may cause brief service disruptions.
  1. Navigate to the KakaoCloud Console > Data Store > PostgreSQL menu.
  2. Select the PostgreSQL instance group you want to restart from the Instance Group menu.
  3. Go to the Instance tab.
  4. Click the [More] icon for the instance to be restarted, then click Restart PostgreSQL.
  5. In the Restart PostgreSQL popup, review the details and click the [OK] button.