current position:Home>What if the application development service call fails in serverless?

What if the application development service call fails in serverless?

2022-02-04 17:20:44 Alibaba cloud Q & A

ServerLess What should I do if the application development service call fails in ?




Take the answer 1:

The phenomenon In lightweight configuration and registry , Service consumer failed to call service provider .

Probable cause Service failed to register in lightweight configuration and registry . The network of the service is switched . Service push failed . Treatment method Check whether the service is registered successfully on the lightweight configuration and registration center .

Registered successfully , Go ahead with the steps 2. Registration failed , Go ahead with the steps 5. Check whether the instance where the service is located has network switching , That is, the service provider's IP Changed .

A network switch has occurred , Execution steps 3. No network switching occurred , Execution steps 4. Restart the app , Use the latest IP After successful registration , Check again if the call was successful .

Successful call , end . It still doesn't work , Execution steps 4. Check the push log of lightweight registration and configuration center (${ The installation directory }/logs/config-server-push.log), Check whether the service is pushed successfully .

If the server push succeeds , Check whether the latest service is received in the log file of the machine or container on the consumer side IP List or observe whether ERROR Level of logging .

Applications developed in different ways , The path of the log file is different :

be based on HSF/Dubbo Developed applications :${user.home}/logs/configclient/config-client.log be based on ACM Developed applications :${user.home}/logs/vipsrv-logs/vipclient.log be based on Nacos Developed applications :${user.home}/logs/nacos/naming.log If the server push fails , Please contact the SAE Technical support personnel .

The registration of this service cannot be viewed on the lightweight configuration and registration center . At this time, check in the machine or container where the application is located ${user.home}/logs/configclient/config-client.log This log file , See if there is an exception in the registration .


copyright notice
author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/02/202202041720416514.html

Random recommended