Currently, EDAS supports registration of Dubbo and HSF services. This article only describes the service query method of HSF services. If your Dubbo services are published to the original registration center (for example, ZooKeeper), the services cannot be displayed in the EDAS background.
During development and debugging, if your service is registered and discovered using the Light-Weight Configuration Center, you can query services provided or called by an application in the EDAS console.
The following assumes that you start the EDAS configuration center on an ECS instance whose IP address is 192.168.1.100.
Go to http://192.168.1.100:8080.
Click Services on the left-side menu bar, enter the service name, service group name, or IP address to search for the service, and view information about the service provider and caller.
NOTE: After the configuration center is started, the address of the first network adapter is the service discovery address by default. If the ECS instance of the developer has multiple network adapters, set the SERVER_IP variable in the startup script to explicitly bind an address.
Provider list page
Enter the IP address of an ECS instance to see what services are provided by this instance.
Enter the service name or service group to query what IP address provide this service.
Caller list page
Enter the IP address of an ECS instance to query what services are called by this instance.
Enter the service name or service group to query what IP addresses call this service.
After services are packaged and deployed in EDAS, and applications are started properly, follow these steps to query the corresponding service information list in EDAS:
Log on to the EDAS console and click Applications in the left-side navigation pane.
On the Applications page, click a deployed application to go to the application details page.
Click Services in the left-side navigation pane. The Published Service and Consumed Service tabs are displayed. Published Service shows information about the application provider, and Consumed Service shows information about the application consumer.
Note: If you log on to the console using a sub-account, ensure that you have the permission to view the Services page. You can choose Accounts>All Permissions in the left-side navigation pane and check whether you have the view permission under Application Management on the permission management page.
If the corresponding services are not displayed in the service list, follow these steps to troubleshoot the problem:
- Check whether the service configurations in the code are correct.
- Check whether the Tomcat process of the service is properly started and no error is logged (view TOMCAT_HOME/logs/catalina.out and $TOMCAT_HOME/logs/localhost.log.$DATE_FORMAT).
- Check whether the software is of the latest version (click Software Version on the left-side navigation pane from the service information page to view the software version). If the version is not the latest, check whether the corresponding HSF group is created.
- Check whether the host of the ECS instance has special network binding. In normal cases, the online ECS instance is not binded to any host.
- Check whether the ECS instance network and ECS security group configuration have restrictions.