This message was deleted.
# ask-for-help
s
This message was deleted.
👀 2
🍱 1
🏁 1
b
@Daniel Buades Marcos thanks for reporting it. Can you give us a quick reproducible if you have the time? We will debug it more and see where the issues are. cc @sauyon @Sean
d
@Bo Sure, I’ll get back to you before EOD 👌
thanks!
b
appreciate it
d
Copy code
2022-10-12T10:45:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=480) (status=200,type=application/vnd.bentoml.DefaultContainer,length=75032) 1903.326ms (trace=cbd20a373f43fcf901e74f8f739645c8,span=64ced498b005c746,sampled=1)
2022-10-12T10:45:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1224) (status=200,type=application/vnd.bentoml.DefaultContainer,length=75787) 1904.100ms (trace=cbd20a373f43fcf901e74f8f739645c8,span=5087201a4a06e264,sampled=1)
2022-10-12T10:45:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=492) (status=200,type=application/vnd.bentoml.DefaultContainer,length=75046) 1904.737ms (trace=cbd20a373f43fcf901e74f8f739645c8,span=456dae7a71e4b5bf,sampled=1)
2022-10-12T10:45:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1532) (status=200,type=application/vnd.bentoml.DefaultContainer,length=76086) 1905.515ms (trace=cbd20a373f43fcf901e74f8f739645c8,span=f8bfd34c6d1617e8,sampled=1)
2022-10-12T10:45:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=696) (status=200,type=application/vnd.bentoml.DefaultContainer,length=75251) 1906.179ms (trace=cbd20a373f43fcf901e74f8f739645c8,span=9ab8aa7462e23643,sampled=1)
2022-10-12T10:45:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1521) (status=200,type=application/vnd.bentoml.DefaultContainer,length=76076) 1906.743ms (trace=cbd20a373f43fcf901e74f8f739645c8,span=0036dc8d40703220,sampled=1)
2022-10-12T10:45:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=862) (status=200,type=application/vnd.bentoml.DefaultContainer,length=75417) 1907.341ms (trace=cbd20a373f43fcf901e74f8f739645c8,span=6320c0fb895b7054,sampled=1)
2022-10-12T10:45:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=718) (status=200,type=application/vnd.bentoml.DefaultContainer,length=75271) 1914.927ms (trace=cbd20a373f43fcf901e74f8f739645c8,span=d6f9d71229c4bcb3,sampled=1)
2022-10-12T10:45:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1348) (status=200,type=application/vnd.bentoml.DefaultContainer,length=75901) 1915.902ms (trace=cbd20a373f43fcf901e74f8f739645c8,span=6a20fcbeddaa54f9,sampled=1)
2022-10-12T10:45:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1368) (status=200,type=application/vnd.bentoml.DefaultContainer,length=75921) 1917.026ms (trace=cbd20a373f43fcf901e74f8f739645c8,span=31fe63b333e0f0a2,sampled=1)
2022-10-12T10:45:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=473) (status=200,type=application/vnd.bentoml.DefaultContainer,length=75029) 1917.900ms (trace=cbd20a373f43fcf901e74f8f739645c8,span=26f17050c9a5022c,sampled=1)
2022-10-12T10:45:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1558) (status=200,type=application/vnd.bentoml.DefaultContainer,length=76111) 1919.082ms (trace=cbd20a373f43fcf901e74f8f739645c8,span=bfae213aa39ccc5b,sampled=1)
2022-10-12T10:45:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=844) (status=200,type=application/vnd.bentoml.DefaultContainer,length=75397) 1920.276ms (trace=cbd20a373f43fcf901e74f8f739645c8,span=23208081c8a41744,sampled=1)
2022-10-12T10:45:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=585) (status=200,type=application/vnd.bentoml.DefaultContainer,length=75138) 1921.195ms (trace=cbd20a373f43fcf901e74f8f739645c8,span=d57f2535decbf1d1,sampled=1)
2022-10-12T10:45:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=716) (status=200,type=application/vnd.bentoml.DefaultContainer,length=75269) 1922.615ms (trace=cbd20a373f43fcf901e74f8f739645c8,span=5a974b28ad61d584,sampled=1)
2022-10-12T10:45:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1061) (status=200,type=application/vnd.bentoml.DefaultContainer,length=75614) 1923.695ms (trace=cbd20a373f43fcf901e74f8f739645c8,span=cfd0eb51a1f6af03,sampled=1)
2022-10-12T10:47:06-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=834) (status=200,type=application/vnd.bentoml.multiple_outputs,length=136) 15.822ms (trace=fd52be56785bd2ea2d8b1305bc35d226,span=f288261c31128489,sampled=1)
2022-10-12T10:47:06-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1284) (status=200,type=application/vnd.bentoml.multiple_outputs,length=136) 16.394ms (trace=fd52be56785bd2ea2d8b1305bc35d226,span=b8bb092b94b96681,sampled=1)
2022-10-12T10:47:06-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1153) (status=200,type=application/vnd.bentoml.multiple_outputs,length=136) 16.489ms (trace=fd52be56785bd2ea2d8b1305bc35d226,span=2239dfe3b5fda7a8,sampled=1)
2022-10-12T10:47:06-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=727) (status=200,type=application/vnd.bentoml.multiple_outputs,length=136) 15.766ms (trace=fd52be56785bd2ea2d8b1305bc35d226,span=58e14c6a000bc389,sampled=1)
2022-10-12T10:47:06-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=995) (status=200,type=application/vnd.bentoml.multiple_outputs,length=136) 13.383ms (trace=fd52be56785bd2ea2d8b1305bc35d226,span=520fe42aa75c0d85,sampled=1)
2022-10-12T10:47:06-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=632) (status=200,type=application/vnd.bentoml.multiple_outputs,length=136) 13.268ms (trace=fd52be56785bd2ea2d8b1305bc35d226,span=59193e18af74f4da,sampled=1)
2022-10-12T10:47:06-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=663) (status=200,type=application/vnd.bentoml.multiple_outputs,length=136) 13.286ms (trace=fd52be56785bd2ea2d8b1305bc35d226,span=46b8e449b6c1b213,sampled=1)
2022-10-12T10:47:06-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=943) (status=200,type=application/vnd.bentoml.multiple_outputs,length=136) 13.292ms (trace=fd52be56785bd2ea2d8b1305bc35d226,span=389ca68fce858fab,sampled=1)
2022-10-12T10:47:06-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=706) (status=200,type=application/vnd.bentoml.multiple_outputs,length=136) 13.309ms (trace=fd52be56785bd2ea2d8b1305bc35d226,span=b8905a71e9f938b7,sampled=1)
2022-10-12T10:47:06-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1248) (status=200,type=application/vnd.bentoml.multiple_outputs,length=136) 13.365ms (trace=fd52be56785bd2ea2d8b1305bc35d226,span=7377d5c820aafd2e,sampled=1)
2022-10-12T10:47:06-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1061) (status=200,type=application/vnd.bentoml.multiple_outputs,length=136) 13.003ms (trace=fd52be56785bd2ea2d8b1305bc35d226,span=987f5266f8342c24,sampled=1)
2022-10-12T10:47:06-0400 [ERROR] [api_server:ner-aggregator:6] Exception on /api/v1/relations [POST] (trace=fd52be56785bd2ea2d8b1305bc35d226,span=42740386bfc39f62,sampled=1)
Traceback (most recent call last):
  File "/Users/dbuades/Library/Caches/pypoetry/virtualenvs/search-model-server-3GLlreJ3-py3.9/lib/python3.9/site-packages/bentoml/_internal/server/http_app.py", line 311, in api_func
    output = await api.func(input_data)
  File "/Users/dbuades/repos/search-model-server/models/ner_aggregator/service.py", line 101, in relations_single
    return await handler_single(
  File "/Users/dbuades/repos/search-model-server/models/ner_aggregator/__init__.py", line 46, in handler_single
    ner_results, name_matcher_results = await asyncio.gather(ner_results, name_matcher_results)
  File "/Users/dbuades/repos/search-model-server/models/ner_aggregator/__init__.py", line 121, in _ner_wrapper_single
    ner_results = await asyncio.gather(*coroutines)
  File "/Users/dbuades/Library/Caches/pypoetry/virtualenvs/search-model-server-3GLlreJ3-py3.9/lib/python3.9/site-packages/bentoml/_internal/runner/runner.py", line 51, in async_run
    return await self.runner._runner_handle.async_run_method(  # type: ignore
  File "/Users/dbuades/Library/Caches/pypoetry/virtualenvs/search-model-server-3GLlreJ3-py3.9/lib/python3.9/site-packages/bentoml/_internal/runner/runner_handle/remote.py", line 188, in async_run_method
    return tuple(AutoContainer.from_payload(payload) for payload in payloads)
TypeError: 'Response' object is not iterable
@Bo here is an excerpt from the logs, you can see how at some point, it changes to
multiple_outputs
with
batching=False
, it always stays in
DefaultContainer
Copy code
2022-10-12T11:01:49-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=816) (status=200,type=application/vnd.bentoml.DefaultContainer,length=6771) 215.417ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=3c3e2e1e16445be2,sampled=1)
2022-10-12T11:01:49-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=480) (status=200,type=application/vnd.bentoml.DefaultContainer,length=6435) 320.087ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=845145ecef8d3cf9,sampled=1)
2022-10-12T11:01:49-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1224) (status=200,type=application/vnd.bentoml.DefaultContainer,length=9523) 611.751ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=7f5f11e5b8a6cc50,sampled=1)
2022-10-12T11:01:49-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=492) (status=200,type=application/vnd.bentoml.DefaultContainer,length=6447) 736.856ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=60943c05ac873cc0,sampled=1)
2022-10-12T11:01:50-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1532) (status=200,type=application/vnd.bentoml.DefaultContainer,length=7487) 844.225ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=605a7dc176a894bc,sampled=1)
2022-10-12T11:01:50-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=696) (status=200,type=application/vnd.bentoml.DefaultContainer,length=6651) 946.699ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=25976f0940d1de5e,sampled=1)
2022-10-12T11:01:50-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1521) (status=200,type=application/vnd.bentoml.DefaultContainer,length=7476) 1053.006ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=fb8719e645634774,sampled=1)
2022-10-12T11:01:50-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=862) (status=200,type=application/vnd.bentoml.DefaultContainer,length=6817) 1158.740ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=ac97a629fd2e2bcc,sampled=1)
2022-10-12T11:01:50-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=718) (status=200,type=application/vnd.bentoml.DefaultContainer,length=6673) 1262.269ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=f0c3684ab9bbcb4e,sampled=1)
2022-10-12T11:01:50-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1348) (status=200,type=application/vnd.bentoml.DefaultContainer,length=10947) 1605.218ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=840dfc74ff160ec8,sampled=1)
2022-10-12T11:01:50-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1368) (status=200,type=application/vnd.bentoml.DefaultContainer,length=7843) 1742.958ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=8d27264034929ffd,sampled=1)
2022-10-12T11:01:51-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=473) (status=200,type=application/vnd.bentoml.DefaultContainer,length=6431) 1847.733ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=3671507a67c015ca,sampled=1)
2022-10-12T11:01:51-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1558) (status=200,type=application/vnd.bentoml.DefaultContainer,length=8033) 1988.711ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=8bb63ed52b393e23,sampled=1)
2022-10-12T11:01:51-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=844) (status=200,type=application/vnd.bentoml.DefaultContainer,length=6799) 2100.216ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=abf513660f8c03c9,sampled=1)
2022-10-12T11:01:51-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=585) (status=200,type=application/vnd.bentoml.DefaultContainer,length=6540) 2219.035ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=8628e83232238feb,sampled=1)
2022-10-12T11:01:51-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=716) (status=200,type=application/vnd.bentoml.DefaultContainer,length=6671) 2327.025ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=8c33cf49ef3d8787,sampled=1)
2022-10-12T11:01:51-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1061) (status=200,type=application/vnd.bentoml.DefaultContainer,length=7016) 2433.954ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=08d6733ccb1d38a6,sampled=1)
2022-10-12T11:01:51-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1248) (status=200,type=application/vnd.bentoml.DefaultContainer,length=7203) 2543.392ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=986ea626c7d6bf61,sampled=1)
2022-10-12T11:01:51-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=706) (status=200,type=application/vnd.bentoml.DefaultContainer,length=6661) 2652.609ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=9297c4be58d9ddfb,sampled=1)
2022-10-12T11:01:51-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=943) (status=200,type=application/vnd.bentoml.DefaultContainer,length=6898) 2762.904ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=390c1fc29ff236ec,sampled=1)
2022-10-12T11:01:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=663) (status=200,type=application/vnd.bentoml.DefaultContainer,length=6618) 2879.731ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=088fc073132c9a9e,sampled=1)
2022-10-12T11:01:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=632) (status=200,type=application/vnd.bentoml.DefaultContainer,length=6587) 2983.782ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=bcc9c697c7afb6b0,sampled=1)
2022-10-12T11:01:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=995) (status=200,type=application/vnd.bentoml.DefaultContainer,length=6950) 3085.105ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=3b77926c0afe6f94,sampled=1)
2022-10-12T11:01:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=727) (status=200,type=application/vnd.bentoml.DefaultContainer,length=6682) 3206.610ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=9a259252389930cf,sampled=1)
2022-10-12T11:01:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1153) (status=200,type=application/vnd.bentoml.DefaultContainer,length=7108) 3346.044ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=1141a8b98def0bff,sampled=1)
2022-10-12T11:01:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=1284) (status=200,type=application/vnd.bentoml.DefaultContainer,length=7759) 3496.479ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=de05d6c5fdc067c3,sampled=1)
2022-10-12T11:01:52-0400 [INFO] [runner:ner:1] _ (scheme=http,method=POST,path=/relations,type=application/octet-stream,length=834) (status=200,type=application/vnd.bentoml.DefaultContainer,length=6789) 3617.981ms (trace=6469968b9b2e34554c11ff4f79bd4681,span=53fcd04481dc5bff,sampled=1)
s
I think this is the same issue that @Jiang was resolving earlier; it's a bug we introduced while reworking some runner code where if the runner is overloaded, it will send back the wrong response. Because the client doesn't know how to handle it, that's the error that you see. For right now, all that that error means is that the runner server is overloaded.
d
Thanks for your input @sauyon ! It looks like that might be the case, see the attached screenshots from a locust test I just did: 6/10 requests fail at the beginning of the test but then when the test is done only 15/5590 have failed. For those that fail (at the beginning and in the middle of the test), I can see in the logs that is because of the
multiple_outputs
type. Is it expected that the runner is overloaded in the first queries? Seems like this part might be a different bug.
s
Ah, yeah, requests tend to fail at the beginning because the runner's dispatcher is trying to learn how long requests take; it's something that we almost certainly want to fix eventually, but for now the recommendation is to throw a few sample requests at the server to warm it up every time.
d
@sauyon @Bo Thanks, in that case that confirms that this is what we are seeing here! Do you have an example of a custom readiness probe? I’d like to add a few queries to the readiness probe so the runner is already warm up when we start sending queries to the service.
I confirm that both these issues are now solved in 1.0.8. Thanks! 🙂
b
great. Good to hear!