Skip to main content

Manage instance

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

View instance list

You can view the list of instances included in an active PostgreSQL instance group. For more about the relationship between instance groups and instances, see Key Concepts.

  1. Go to the KakaoCloud console > Data Store > PostgreSQL.

  2. Select the instance group whose instance list you want to view.

  3. Navigate to the Instance tab.

    ItemDescription
    Instance nameThe name specified when the PostgreSQL instance was created
    AZThe availability zone where the instance was created
    StatusInstance status
    - See Lifecycle and status values
    Availability statusIndicates replication state between instances (HA only)
    - See Instance availability status
    RoleRole of the instance
    - See Availability and roles
    Instance typeThe type selected at creation
    Storage sizeBase and log storage size configured at creation
    UptimeTime elapsed since last update (create/restart/failover)
    Created atInstance creation date and time

Monitor instances

You can view monitoring results for PostgreSQL instance groups in the Monitoring tab.

  1. Go to the KakaoCloud console > Data Store > PostgreSQL.

  2. Select the PostgreSQL instance group to monitor.

  3. Select the Monitoring tab.

    ItemDescription
    Monitored instanceSelect instance to monitor
    Metric itemsChoose metrics to display
    - Options: PostgreSQL, CPU, Memory, Filesystem, Disk, Network
    - Default view shows all
    - Multiple selections allowed
    Data periodPeriod shown in monitoring graph
    - Options: 1 hour (default), 3 hours, 12 hours, 1 day, 7 days
    View modeGraph layout mode: single, two-column, or three-column views
    Auto-refresh intervalOptions: Off (default), 10 sec, 30 sec, 1 min, 5 min
    Manual refreshSelect to refresh the monitoring graph
Monitoring metrics
CategoryMonitoring dataDescription
PostgreSQLConnection (Count)Number of PostgreSQL connections
PostgreSQLConnections (Count)Number of active PostgreSQL connections
PostgreSQLLock sessions (Count)Number of PostgreSQL lock sessions
PostgreSQLDeadlock (Count)Number of PostgreSQL deadlocks
PostgreSQLActive transactions (Count)Number of active PostgreSQL transactions
PostgreSQLReplication lag (sec)PostgreSQL replication delay time
PostgreSQLBuffer hit ratio (%)PostgreSQL buffer hit ratio
PostgreSQLVacuum xidPostgreSQL vacuum xid measured per database
PostgreSQLTemporary file usage per DB (%)PostgreSQL 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 file system usage over time
FileSystemTotal usage (Bytes)Total file system usage over time
FileSysteminode usage per mount (%)inode usage per file system mount over time
DiskRead Bytes (Bytes/sec)Disk I/O read usage over time
DiskWrite Bytes (Bytes/sec)Disk I/O write usage over time
DiskRead IOPS (IO/sec)Disk I/O read usage over time
DiskWrite IOPS (IO/sec)Disk I/O write usage over time
DiskAvailable disk capacity (Bytes)Remaining available capacity of data and log storage
DiskTotal disk capacity (Bytes)Total capacity of data and log storage
DiskAvailable inodes on disk (Count)Number of available inodes in data and log storage
DiskTotal reserved inodes on disk (Count)Number of reserved inodes in data and log storage
DiskDisk inode usage (Count)Number of inodes in use in data and log storage
NetworkRX by interface (Bytes)Network RX usage over time
NetworkTX by interface (Bytes)Network TX usage over time
NetworkRX by interface (PPS)Network RX usage over time
NetworkTX by interface (PPS)Network TX usage over time

View instance logs

PostgreSQL logs can be viewed through the Log Explorer in KakaoCloud’s monitoring service.

  1. Go to the KakaoCloud console > Monitoring.
  2. Select the Explorer tab and select PostgreSQL from the Log Explorer.
  3. Check the query period and enter your log filter. File path filtering is not supported.
  4. After setting search criteria, logs and charts will display results.
info

For more on log explorer, see Log Explorer.

Restart PostgreSQL

You can restart PostgreSQL for a running instance.

  • If the instance status is Pending, Starting, Terminating, or Storage-Full (Instance storage error), it cannot be restarted.
  • If the Primary instance is restarted, a momentary disconnection may occur.
  1. Go to the KakaoCloud console > Data Store > PostgreSQL.
  2. Select the instance group of the PostgreSQL instance to restart.
  3. Go to the Instance tab.
  4. Select [More options] for the instance to restart and select Restart PostgreSQL.
  5. Review details in the popup and select [OK].