pool ceph very slow write

heldernm

New Member
Jan 31, 2023
3
0
1
tenho um sistema com 3 nós e 1 OSD em cada nó.

Velocidade muito lenta, principalmente escrita
CrystalDiskMask ~600MBs leitura / ~30MBs escrita.

Coloquei DB Disk com 2% e WAL Disk com 10%

No Pool_HDD em questão, tem apenas uma VM de teste.
O problema também acontece no pool_ssd. Porém tem VMs nela.

CPU e RAM do PVE - OK

Versão PVE 7.4
CEPH 16.2.15

Sugestões?






Bash:
[global]
     auth_client_required = cephx
     auth_cluster_required = cephx
     auth_service_required = cephx
     cluster_network = 10.0.5.2/28
     fsid = 7556b799-7b87-40b3-b282-9d4ec7d248a3
     mon_allow_pool_delete = true
     mon_host = 10.0.5.3 10.0.5.5 10.0.5.4 10.0.5.2 10.0.5.13
     ms_bind_ipv4 = true
     ms_bind_ipv6 = false
     osd_deep_scrub_interval = 1209600
     osd_disk_threads = 128
     osd_max_write_size = 1024MB
     osd_op_threads = 256
     osd_pool_default_min_size = 2
     osd_pool_default_size = 3
     osd_recovery_max_active = 120
     public_network = 10.0.5.2/28

[client]
     keyring = /etc/pve/priv/$cluster.$name.keyring

[mon.pve01]
     public_addr = 10.0.5.2

[mon.pve02]
     public_addr = 10.0.5.3

[mon.pve03]
     public_addr = 10.0.5.5

[mon.pve05]
     public_addr = 10.0.5.4

[mon.pve06]
     public_addr = 10.0.5.13



# begin crush map
tunable choose_local_tries 0
tunable choose_local_fallback_tries 0
tunable choose_total_tries 50
tunable chooseleaf_descend_once 1
tunable chooseleaf_vary_r 1
tunable chooseleaf_stable 1
tunable straw_calc_version 1
tunable allowed_bucket_algs 54

# devices
device 0 osd.0 class ssd
device 1 osd.1 class hdd
device 2 osd.2 class ssd
device 3 osd.3 class ssd
device 4 osd.4 class hdd
device 5 osd.5 class ssd
device 7 osd.7 class hdd
device 8 osd.8 class ssd
device 10 osd.10 class ssd
device 11 osd.11 class ssd
device 13 osd.13 class ssd
device 14 osd.14 class ssd

# types
type 0 osd
type 1 host
type 2 chassis
type 3 rack
type 4 row
type 5 pdu
type 6 pod
type 7 room
type 8 datacenter
type 9 zone
type 10 region
type 11 root

# buckets
host pve02 {
    id -3        # do not change unnecessarily
    id -4 class hdd        # do not change unnecessarily
    id -7 class ssd        # do not change unnecessarily
    # weight 5.517
    alg straw2
    hash 0    # rjenkins1
    item osd.3 weight 0.910
    item osd.8 weight 0.910
    item osd.7 weight 3.697
}
host pve {
    id -5        # do not change unnecessarily
    id -6 class hdd        # do not change unnecessarily
    id -8 class ssd        # do not change unnecessarily
    # weight 0.000
    alg straw2
    hash 0    # rjenkins1
}
host pve03 {
    id -10        # do not change unnecessarily
    id -11 class hdd        # do not change unnecessarily
    id -12 class ssd        # do not change unnecessarily
    # weight 0.000
    alg straw2
    hash 0    # rjenkins1
}
host pve05 {
    id -13        # do not change unnecessarily
    id -14 class hdd        # do not change unnecessarily
    id -15 class ssd        # do not change unnecessarily
    # weight 5.517
    alg straw2
    hash 0    # rjenkins1
    item osd.0 weight 0.910
    item osd.2 weight 0.910
    item osd.11 weight 0.910
    item osd.1 weight 2.788
}
host pve01 {
    id -16        # do not change unnecessarily
    id -17 class hdd        # do not change unnecessarily
    id -18 class ssd        # do not change unnecessarily
    # weight 5.517
    alg straw2
    hash 0    # rjenkins1
    item osd.10 weight 0.910
    item osd.13 weight 0.910
    item osd.4 weight 3.697
}
host pve06 {
    id -19        # do not change unnecessarily
    id -20 class hdd        # do not change unnecessarily
    id -21 class ssd        # do not change unnecessarily
    # weight 1.819
    alg straw2
    hash 0    # rjenkins1
    item osd.5 weight 0.910
    item osd.14 weight 0.910
}
root default {
    id -1        # do not change unnecessarily
    id -2 class hdd        # do not change unnecessarily
    id -9 class ssd        # do not change unnecessarily
    # weight 18.369
    alg straw2
    hash 0    # rjenkins1
    item pve02 weight 5.517
    item pve weight 0.000
    item pve03 weight 0.000
    item pve05 weight 5.517
    item pve01 weight 5.517
    item pve06 weight 1.819
}

# rules
rule replicated_rule {
    id 0
    type replicated
    min_size 1
    max_size 10
    step take default
    step chooseleaf firstn 0 type host
    step emit
}
rule replicated_ssd {
    id 1
    type replicated
    min_size 1
    max_size 10
    step take default class ssd
    step chooseleaf firstn 0 type host
    step emit
}

# end crush map




BALANCE MODE : UPMAP
 

Attachments

  • fio-write.png
    fio-write.png
    48.3 KB · Views: 7
  • fio-read.png
    fio-read.png
    49.2 KB · Views: 4
  • ceph_pool.png
    ceph_pool.png
    24.6 KB · Views: 5
  • ceph-tree.png
    ceph-tree.png
    101.6 KB · Views: 5
  • ceph-df.png
    ceph-df.png
    158.2 KB · Views: 8
  • crystaldisk.png
    crystaldisk.png
    55.6 KB · Views: 8
Your cluster is not healthy.

You only have 2 of 3 HDDs online. There are way too much PGs on the HDD OSDs, they should be reduced to around 200.

Your "replicated_rule" does not use the device class and mixes SSDs and HDDs.

You have to fix these issues before you can talk about performance.

You could as a first step remove the HDDs from the cluster. There is not much data stored on them. Just assign the "replicated_ssd" rule to all pools and Ceph will migrate the data away from the HDDs.
 
The idea is to have two rules SSD and HDD, and two "pool" HDD and SSD.

I didn't find documentation for having a hybrid pool with SSD and HDD.

Is it recommended to have a single mixed pool or a separate pool?
 
I didn't find documentation for having a hybrid pool with SSD and HDD.
pool tiering exists but doesnt work. might be completely deprecated by now.

Is it recommended to have a single mixed pool or a separate pool?
a mixed pool by definition will operate only as fast as the slowest osds. If you have a use case where that makes sense, then you can recommend it ;)

tenho um sistema com 3 nós e 1 OSD em cada nó.
while you didnt mention network speed or topology (although I'm guessing at least single link 10gbe) this config is never going to be very fast due to the small number of OSDs/node. 30MB/S writes are a little slow, but AT BEST it can't be more then ~120MB/S or so per initiator. HDDs are slow.
You have to fix these issues before you can talk about performance.

this.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!