How do I select a suitable specification for my routine?
Similar to other Alibaba Cloud services such as Function Compute and Elastic Compute Service (ECS), ER has different specifications (5 ms, 50 ms, and 100 ms). If you are unsure of the runtime of your routine code, you can choose the default specification of 50 ms and test run the routine in the test environment or canary release environment. You can then check the ER logs to view the actual runtime of the routine and choose a specification based on the actual runtime plus an additional 20%. For example, if a routine requires 80 ms to complete, we recommend that you choose a routine specification of 100 ms. You can modify routine specifications based on your business requirements. The new specifications take effect immediately.
How do I cancel a canary release?
- For example, you have published the first version of your code to the production environment. Then, you revised the code and published version 2 of the code to the canary release environment of the Beijing region. However, after version 2 is published, an exception occurs and users in Beijing cannot access the node. You want to roll the code in the Beijing region back to the first version. This following figure shows this process.
- You must select the first version of the code and publish the code to the canary release environment of the Beijing region to overwrite version 2 of the code.
- After you publish the first version of the code to the canary release environment of the Beijing region, the code that runs in the canary release environment (Beijing) is the first version of the code. This indicates that the code has rolled back.