Performance Issue with Webserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We are running our webapp on a gluster mount.  We are finding that performance is a lot slower than local disk.  We expected it to be slower but not this much slower.  So, I am looking to you for some guidance on what to do.  IE: Not run off the gluster mount or change config settings, etc. 

Here are some numbers on performance:

Gluster Mount html:

Document Path:          /tmp/test.html
Document Length:        17 bytes

Concurrency Level:      1
Time taken for tests:   0.269 seconds
Complete requests:      1
Failed requests:        0
Write errors:           0
Total transferred:      302 bytes
HTML transferred:       17 bytes
Requests per second:    3.72 [#/sec] (mean)
Time per request:       268.621 [ms] (mean)
Time per request:       268.621 [ms] (mean, across all concurrent requests)
Transfer rate:          1.10 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       16   16   0.0     16      16
Processing:   253  253   0.0    253     253
Waiting:      253  253   0.0    253     253
Total:        269  269   0.0    269     269


Local disk html:

Document Path:          /tmp2/test.html
Document Length:        16 bytes

Concurrency Level:      1
Time taken for tests:   0.035 seconds
Complete requests:      1
Failed requests:        0
Write errors:           0
Total transferred:      301 bytes
HTML transferred:       16 bytes
Requests per second:    28.24 [#/sec] (mean)
Time per request:       35.409 [ms] (mean)
Time per request:       35.409 [ms] (mean, across all concurrent requests)
Transfer rate:          8.30 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       20   20   0.0     20      20
Processing:    16   16   0.0     16      16
Waiting:       16   16   0.0     16      16
Total:         35   35   0.0     35      35


Here is my client config:
## file auto generated by ./glusterfs-volgen (mount.vol)
# Cmd line:
# $ ./glusterfs-volgen -n live-glusterfs-001 -r 1 xxx:/.glusterfs/sb01 xxx:/.glusterfs/sb01 xxx:/.glusterfs/sb01

# RAID 1
# TRANSPORT-TYPE tcp
volume xxx-1
    type protocol/client
    option transport-type tcp
    option remote-host xxx
    option transport.socket.nodelay on
    option transport.remote-port 6996
    option remote-subvolume brick1
end-volume

volume xxx-1
    type protocol/client
    option transport-type tcp
    option remote-host xxx
    option transport.socket.nodelay on
    option transport.remote-port 6996
    option remote-subvolume brick1
end-volume

volume xxx-1
    type protocol/client
    option transport-type tcp
    option remote-host xxx
    option transport.socket.nodelay on
    option transport.remote-port 6996
    option remote-subvolume brick1
end-volume

volume mirror-0
    type cluster/replicate
    subvolumes xxx-1 xxx-1 xxx-1
end-volume

#volume writebehind
#    type performance/write-behind
#    option cache-size 4MB
#    subvolumes mirror-0
#end-volume

volume readahead
    type performance/read-ahead
    option page-count 4
    subvolumes mirror-0
    #subvolumes writebehind
end-volume

volume iocache
    type performance/io-cache
    option cache-size 1GB
    option cache-timeout 1
    subvolumes readahead
end-volume

volume quickread
    type performance/quick-read
    option cache-timeout 1
    option max-file-size 64kB
    subvolumes iocache
end-volume

volume statprefetch
    type performance/stat-prefetch
    subvolumes quickread
end-volume

volume iothreads
    type performance/io-threads
    option thread-count 16
    subvolumes statprefetch
end-volume

If you need any other information, let me know. Thank you in advance.

-Jenn







[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux