Tuning Proxmox et Ceph

De $1

 

 howto05_small.pngParamétrages Proxmox et Ceph

Paramétrages de la Swap

Dans le fichier /etc/sysctl.conf :

vm.swappiness = 10

Pour appliquer la configuration :

sysctl -p

 

 

Paramétrages réseau

Dans le fichier /etc/sysctl.conf :

# 1GE/16MB (16777216)
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.core.rmem_default = 16777216
net.core.wmem_default = 16777216
net.core.optmem_max = 40960
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
 

# 10GE/32MB (33554432)
#net.core.rmem_max = 33554432
#net.core.wmem_max = 33554432
#net.core.rmem_default = 33554432
#net.core.wmem_default = 33554432
#net.core.optmem_max = 40960
#net.ipv4.tcp_rmem = 4096 87380 33554432
#net.ipv4.tcp_wmem = 4096 65536 33554432

# 10GB/54MB (56623104)
#net.core.rmem_max = 56623104
#net.core.wmem_max = 56623104
#net.core.rmem_default = 56623104
#net.core.wmem_default = 56623104
#net.core.optmem_max = 40960
#net.ipv4.tcp_rmem = 4096 87380 56623104
#net.ipv4.tcp_wmem = 4096 65536 56623104


## Increase number of incoming connections. The value can be raised to bursts of request, default is 128
net.core.somaxconn = 1024

## Increase number of incoming connections backlog, default is 1000
net.core.netdev_max_backlog = 50000

##  Maximum number of remembered connection requests, default is 128
net.ipv4.tcp_max_syn_backlog = 30000

## Increase the tcp-time-wait buckets pool size to prevent simple DOS attacks, default is 8192
net.ipv4.tcp_max_tw_buckets = 2000000

# Recycle and Reuse TIME_WAIT sockets faster, default is 0 for both
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_tw_reuse = 1

## Decrease TIME_WAIT seconds, default is 30 seconds
net.ipv4.tcp_fin_timeout = 10

## Tells the system whether it should start at the default window size only for TCP connections
## that have been idle for too long, default is 1
net.ipv4.tcp_slow_start_after_idle = 0

#If your servers talk UDP, also up these limits, default is 4096
net.ipv4.udp_rmem_min = 8192
net.ipv4.udp_wmem_min = 8192

## Disable source redirects
## Default is 1
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.all.accept_redirects = 0

## Disable source routing, default is 0
net.ipv4.conf.all.accept_source_route = 0


Pour appliquer la configuration :

sysctl -p

 

Paramétrages des disques durs

Dans le fichier /etc/rc.local :

echo 1024 > /sys/block/sdx/queue/nr_requests

echo 4096 > /sys/block/sdx/queue/read_ahead_kb

echo deadline > /sys/block/sdx/queue/scheduler

Editer le fichier /etc/default/grub et modifier la ligne :

GRUB_CMDLINE_LINUX_DEFAULT="quiet elevator=deadline"

Exécuter :

update-grub2

 

Paramétrages /etc/pve/ceph.conf

[global]

          debug_lockdep = 0/0
          debug_context = 0/0
          debug_crush = 0/0
          debug_buffer = 0/0
          debug_timer = 0/0
          debug_filer = 0/0
          debug_objecter = 0/0
          debug_rados = 0/0
          debug_rbd = 0/0
          debug_journaler = 0/0
          debug_objectcatcher = 0/0
          debug_client = 0/0
          debug_osd = 0/0
          debug_optracker = 0/0
          debug_objclass = 0/0
          debug_filestore = 0/0
          debug_journal = 0/0
          debug_ms = 0/0
          debug_monc = 0/0
          debug_tp = 0/0
          debug_auth = 0/0
          debug_finisher = 0/0
          debug_heartbeatmap = 0/0
          debug_perfcounter = 0/0
          debug_asok = 0/0
          debug_throttle = 0/0
          debug_mon = 0/0
          debug_paxos = 0/0
          debug_rgw = 0/0

[osd]

         osd mkfs options xfs = -f -i size=2048
         osd mount options xfs = rw,inode64,noatime,nodiratime,logbufs=8,logbsize=256k,allocsize=4M

	 journal aio = true
	 journal dio = true
	 journal block align = true
	 journal force aio = true 

 

Pour appliquer les paramétrages :

/etc/init.d/ceph stop osd; umount /var/lib/ceph/osd/ceph-* ; /etc/init.d/ceph start osd

 

 

recherche01_small04.pngSources 

 

 

 howto05_small.pngVous en pensez quoi ?


 

{{ iframe{ uri: "http://le_lien" , width: "1024", height: "768", scrolling: "True" } }}   

 

 

Enrichissez Yakakliker en y contribuant vous aussi.

 

Cette page n'a encore aucun contenu. Enrichissez Yakakliker en y contribuant vous aussi.

 
Images (0)
 
Commentaires (0)
Vous devez être connecté pour poster un commentaire.