Resolving Bilibili’s major site incident with OpenResty XRay

12 views
Skip to first unread message

Aisse Tejas

unread,
Nov 23, 2022, 5:51:52 PM11/23/22
to openresty-en
Check how OpenResty XRay resolved a significant website crash of Bilibili.com, one of the busiest streaming websites in Asia.

Read the full story in the link below:

Stefan Parvu

unread,
Nov 24, 2022, 1:58:18 AM11/24/22
to openre...@googlegroups.com
 The Lua flame graph eventually located the culprit — a string-type zero value for a server weight (i.e., “0”) was inserted into the business logic’s configuration metadata, while the Lua API of OpenResty’s lua-resty-balancer library expected a numerical weight value. It thus led to infinite recursion and infinite loops.”

Nice catch. Here we see a classic runtime data type errors for OpenResty and Lua. Strict compile time error checking languages like Rust would have helped here.

Thanks for sharing

Best Regards,
Stefan Parvu

On 24. Nov 2022, at 0.52, 'Aisse Tejas' via openresty-en <openre...@googlegroups.com> wrote:

Check how OpenResty XRay resolved a significant website crash of Bilibili.com, one of the busiest streaming websites in Asia.
--
You received this message because you are subscribed to the Google Groups "openresty-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openresty-en...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openresty-en/50d4e5bf-a2ca-436d-aab3-8e6bb610ef52n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages