Skip to content

LeoFS's gateway do not response or return HTTP error code 5xx #323

Closed
@minhchuduc

Description

Environments:
Leofs version 1.2.6, installed using .deb file
Erlang R16B03-1 (erts-5.10.4) [source] [64-bit halfword] [smp:16:16] [async-threads:10] [kernel-poll:false]
Ubuntu 14.04 on Baremetal
Kernel 3.13.0-44-generic #73-Ubuntu SMP Tue Dec 16 00:22:43 UTC 2014 x86_64 GNU/Linux

On a terminal i run stress test:

siege -c 500 -r 2 http://hehe1.s3.mydomain.com/300MB_file

(i checked to sure that 300MB_file is cached on disk @leofs_gateway node
and i monitored network @leofs_gateway node to sure that it not get data from storage nodes
)

On another terminal i download some small file to test its responsiveness:

wget http://hehe1.s3.mydomain.com/IMAGES/0478e05a-d5e5-47ac-bab9-26278a2de1ec.jpg

And i receive 3 types of response randomly:

1: OK

 (it delay a bit, sometimes quite long, then...)
Saving to: `0478e05a-d5e5-47ac-bab9-26278a2de1ec.jpg.13'

100%[======================================================================================================>] 229,449     --.-K/s   in 0.002s

2015-03-04 13:44:10 (115 MB/s) - `0478e05a-d5e5-47ac-bab9-26278a2de1ec.jpg.13' saved [229449/229449]

Download time is "0.002s"
It's mean Time to first byte is so long (http://en.wikipedia.org/wiki/Time_To_First_Byte)

--

2: ERROR 503: Service Unavailable

...
HTTP request sent, awaiting response... 503 Service Unavailable
2015-03-04 13:44:11 ERROR 503: Service Unavailable.

3: ERROR 500: Internal Server Error

...
HTTP request sent, awaiting response... 500 Internal Server Error
2015-03-04 13:45:20 ERROR 500: Internal Server Error.

Output of my "leofs-adm status gateway_0@172.x.y.z":

-------------------------------+------------------
             Item              |       Value
-------------------------------+------------------
 Config-1: basic
--------------------------------------------------
 [basic]
-------------------------------+------------------
                       version | 1.2.6
                using protocol | s3
                       log dir | ./log/erlang
-------------------------------+------------------
 [http server related for rest/s3 api]
-------------------------------+------------------
                listening port | 80
            listening ssl port | 443
           number of_acceptors | 256
-------------------------------+------------------
 [cache-related]
-------------------------------+------------------
       http cache [true|false] | false
       number of cache_workers | 16
                  cache expire | 600
         cache max content len | 3123456789
            ram cache capacity | 6123456789
        disk cache capacity    | 30123456789
        disk cache threshold   | 20123456
        disk cache data dir    | ./cache/data
        disk cache journal dir | ./cache/journal
-------------------------------+------------------
 [large object related]
-------------------------------+------------------
      max number of chunk objs | 1000
           chunk object length | 5242880
             max object length | 5242880000
     reading  chunk obj length | 5242880
     threshold of chunk length | 5767168
-------------------------------+------------------
 Config-2: watchdog
-------------------------------+------------------
 [rex(rpc-proc)]               |
             watch interval(s) | 5
        threshold mem capacity | 335544320
-------------------------------+------------------
 [cpu]                         |
              watchdog eanbled | disabled
             watch interval(s) | 5
        threshold cpu load avg | 5.0
         threshold cpu util(%) | 100
-------------------------------+------------------
 [io]                          |
              watchdog enabled | enabled
             watch interval(s) | 1
        threshold input size/s | 134217728
       threshold output size/s | 134217728
-------------------------------+------------------
 Status-1: RING hash
-------------------------------+------------------
             current ring hash | 9d2edfe6
            previous ring hash | 9d2edfe6
-------------------------------+------------------
 Status-2: Erlang VM
-------------------------------+------------------
                    vm version | 5.10.4
               total mem usage | 75322280
              system mem usage | 54630464
               procs mem usage | 20690424
                 ets mem usage | 5585976
                         procs | 728/1048576
                   kernel_poll | true
              thread_pool_size | 32
-------------------------------+------------------

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions