Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register job at Eureka Server #76

Open
rfscheidt opened this issue Nov 9, 2021 · 1 comment
Open

Register job at Eureka Server #76

rfscheidt opened this issue Nov 9, 2021 · 1 comment

Comments

@rfscheidt
Copy link

rfscheidt commented Nov 9, 2021

Hello everyone,

I am trying to register my Golang client app in the Eureka java server, following this way:

func EurekaClienteRegister2() {
e := fargo.EurekaConnection{
ServiceUrls: []string{"http://10.0.2.110:9080/discovery-service/eureka"},
Timeout: 2,
}

i := fargo.Instance{
	HostName:         "http://10.0.2.248:8087/ged-service/",
	Port:             8087,
	App:              "ged-service-name",
	IPAddr:           "10.0.2.248",
	VipAddress:       "10.0.2.248",
	DataCenterInfo:   fargo.DataCenterInfo{Name: fargo.MyOwn},
	SecureVipAddress: "10.0.2.248",
	Status:           fargo.UP,
}

err := e.RegisterInstance(&i)
if err == nil {
	log.Println(err)
}

}

But, in the console Eureka server, it appear stranger:

image

And, the problem is that, my gateway don't find the client.
2021-11-09 11:39:16.246 WARN [gateway-service-name,de773706e662d245,de773706e662d245] 34176 --- [ctor-http-nio-3] o.s.c.l.core.RoundRobinLoadBalancer : No servers available for service: GED-SERVICE-NAME

@bodhili
Copy link

bodhili commented Mar 23, 2024

need to set the statusPageUrl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants