Mynotes step 13/2/2023 The prerequisites are just to deploy the application and figure out its process id. The main benefit I see with using py-spy to profile Python code inside a microservice is that it is quick and easy to set up. Subsequent requests have negligible load and are complete within 100 ms. With maxsize set to 10,000, only the first request causes a spike in CPU load. Note that the container needs to be run with the SYS_PTRACE the argument in order for py-spy to work so we need to add this to the devcontainer.json config:įigure 11: CPU load and response time when maxsize=10000 Once inside the container, we’ll start a server that will host the bot (using rasa run ). We will also need to add whatever setup is necessary to recreate the bot described in the bug report. Step 1 Use VS Code to deploy the component in a containerĪs before, we will use VS Code to create a container based on the rasa/rasa:2.8.22-full image.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |