[etcd] Solve the problem of “Auto sync endpoints failed.” when go-zero registers etcd

go: v1.20.3 go-zero: v1.5.4 etcd: v3.5.9 Description of the problem In go-zero, etcd is used to realize service registration and discovery. RPC services can be registered to etcd, and other services can discover registered microservices and can also access them. However, the log of the registered rpc service keeps reporting the following error. The log […]

Given the endpoints of the triangle and the radius of the center of the circle, find the area of intersection

The title is probably the three-point coordinates (ax, ay), (bx, by), (cx, cy) of the triangle and the radius r of the circle center (ox, oy), find the intersection area of the triangle and the circle This question can obviously obtain a certain area, but there are many special situations to consider. It is not […]

Springboot combat 21 Indicator customization: How to implement custom metrics and Actuator endpoints?

In Lecture 20, we introduced the Spring Boot Actuator component to satisfy the system monitoring function of the Spring Boot application, and focused on how to extend the implementation of common Info and Health monitoring endpoints. In this lecture, we continue to discuss how to extend the Actuator endpoint, but pay more attention to the […]

78. Indicator monitoring – commonly used endpoints and enabling and disabling

Commonly used endpoints ID description auditevents Exposes audit event information for the current application. An AuditEventRepository component is required. beans Displays a complete list of all Spring Beans in the application. caches Exposes available caches. conditions Displays all condition information for automatic configuration, including the reason for match or non-match. configprops Show all @ConfigurationProperties. env […]

[Solved] Error response from daemon: error while removing network: has active endpoints

docker delete network error: docker network rm docker_gwbridge Error response from daemon: error while removing network: network docker_gwbridge id 09baa41db4815627b39b37c12e7e6dc85d7842aad6dd7c1c53e57c4c6a18e9ad has active endpoints solve: docker network inspect docker_gwbridge [ { “Name”: “docker_gwbridge”, “Id”: “09baa41db4815627b39b37c12e7e6dc85d7842aad6dd7c1c53e57c4c6a18e9ad”, “Created”: “2022-06-23T17:49:56.442108179 + 08:00”, “Scope”: “local”, “Driver”: “bridge”, “EnableIPv6”: false, “IPAM”: { “Driver”: “default”, “Options”: null, “Config”: [ { “Subnet”: “172.18.0.0/16”, […]