No Image

Optimizing NFS Performance

2016-05-23 KENNETH 0

origin : http://nfs.sourceforge.net/nfs-howto/ar01s05.html 5. Optimizing NFS Performance Careful analysis of your environment, both from the client and from the server point of view, is the first step necessary for optimal NFS performance. The first sections will address issues that are generally important to the client. Later (Section 5.3 and beyond), server side issues will be discussed. In both cases, these issues will not be limited exclusively to one side or the other, but it is useful to separate the two in order to get a clearer picture of cause and effect. Aside from the general network configuration – appropriate network capacity, faster NICs, full duplex settings in order to reduce collisions, agreement in network speed among the switches and hubs, etc. – one of the most important client optimization settings are the NFS data transfer buffer sizes, specified by the mount command [ more… ]

No Image

Apache Benchmark apr_socket_recv error when performing a load test

2016-05-23 KENNETH 0

origin : http://blog.scene.ro/posts/apache-benchmark-apr_socket_recv/ Problem Apache Benchmark breaks with apr_socket_recv: Connection reset by peer (104) when performing a load test. This is even more annoying since we do not get results for the requests performed before this one. Context linux host, Ubuntu 14.04, 3.11.0-17-generic kernel performing a load test against a jekyll serve ran on localhost using ab v2.3 for the load test both jekyll and ab are being ran on the same machine Sample Output benny@alpha:~$ ab -c 50 -n 1000 http://localhost:8080/ This is ApacheBench, Version 2.3 <$Revision: 1528965 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking localhost (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Completed 400 requests Completed 500 requests Completed 600 requests Completed 700 requests Completed 800 requests Completed 900 requests apr_socket_recv: Connection reset by peer [ more… ]

No Image

config static port for nfsd on centos7

2016-05-21 KENNETH 0

config static port for nfsd on centos7 출처 : https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Storage_Administration_Guide/nfs-serverconfig.html#s2-nfs-nfs-firewall-config 설정파일 :  /etc/sysconfig/nfs RPCMOUNTDOPTS=”-p 4002″ 와 MOUNTD_PORT=4002 옵션은 동일함   재시작   실행 후 포트 상태 확인  

No Image

config static port for nfsd on centos6

2016-05-21 KENNETH 0

config static port for nfsd on centos6   출처 : https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/s2-nfs-nfs-firewall-config.html 설정파일 :  /etc/sysconfig/nfs RQUOTAD_PORT=875 LOCKD_TCPPORT=4001 LOCKD_UDPPORT=4001 MOUNTD_PORT=4002 STATD_PORT=4000 #STATDARG=”-p 4000″ STATDARG=”-p 4000” 와 STATD_PORT=4000 옵션은 동일한것임..   실행 후 포트 상태 확인 # rpcinfo -p program vers proto port service 100000 4 tcp 111 portmapper 100000 3 tcp 111 portmapper 100000 2 tcp 111 portmapper 100000 4 udp 111 portmapper 100000 3 udp 111 portmapper 100000 2 udp 111 portmapper 100024 1 udp 4000 status 100024 1 tcp 4000 status 100011 1 udp 875 rquotad 100011 2 udp 875 rquotad 100011 1 tcp 875 rquotad 100011 2 tcp 875 rquotad 100005 1 udp 4002 mountd 100005 1 tcp 4002 mountd 100005 2 udp 4002 mountd 100005 2 tcp 4002 mountd 100005 3 udp 4002 mountd 100005 3 tcp 4002 mountd 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100003 [ more… ]

No Image

log timestamp timezone in mysql-5.7

2016-05-12 KENNETH 1

mysql-5.7 사용중에 sql에 의한 time은 시스템 시간과 동일하게 잘 맞는데.. log(error, slow 등)파일의 timestamp만 내가 사용하는 KST 가 적용되지 않고 9시간 전인 UTC로 되어있다 이말이지… 그래서 찾아봤더니.. 5.7.2 부터 log_timestamps 가 추가되었데… ㅅㅂ 기본값이 UTC설정이라 log_timestamps=SYSTEM 이렇게 처리를 해줘야 한댄다…   출처 : http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_log_timestamps log_timestamps Introduced 5.7.2 Command-Line Format –log_timestamps=# System Variable Name log_timestamps Variable Scope Global Dynamic Variable Yes Permitted Values Type enumeration Default UTC Valid Values UTC SYSTEM This variable controls the timestamp time zone of error log messages, and of general query log and slow query log messages written to files. It does not affect the time zone of general query log and slow query log messages written to tables (mysql.general_log, mysql.slow_log). Rows retrieved from those tables can be converted from the local system time zone to any desired time zone with CONVERT_TZ() or by setting the session [ more… ]