Service Discovery using Eureka Server
Follow below steps to create a eureka server using spring boot application.
Step 1: Create an empty project using spring initializer with only below dependency.
spring-cloud-starter-netflix-eureka-server
Then the pom.xml file will be like this
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.1</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.learn</groupId>
<artifactId>eureka-server</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>eureka-server</name>
<description>Demo project for Spring Boot</description>
<url/>
<licenses>
<license/>
</licenses>
<developers>
<developer/>
</developers>
<scm>
<connection/>
<developerConnection/>
<tag/>
<url/>
</scm>
<properties>
<java.version>17</java.version>
<spring-cloud.version>2023.0.2</spring-cloud.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Step 2: update the eureka configs at application.yml file
server:
port: 8761
spring:
application:
name: eureka-server
eureka:
client:
fetch-registry: false
register-with-eureka: false
Step 3: Add the @EnableEurekaServer annotation to main class
package com.learn.eureka_server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
@SpringBootApplication
@EnableEurekaServer
public class EurekaServerApplication {
public static void main(String[] args) {
SpringApplication.run(EurekaServerApplication.class, args);
}
}
After that start the application and then eureka server is ready.
Below is the console log of our eureka server then.
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.3.1)
2024-07-01T12:28:39.372+05:30 INFO 240950 --- [eureka-server] [ main] c.l.e.EurekaServerApplication : Starting EurekaServerApplication using Java 17.0.11 with PID 240950 (/home/dhanushka/Documents/example-repos/vaccination_center/eureka-server/target/classes started by dhanushka in /home/dhanushka/Documents/example-repos/vaccination_center/eureka-server)
2024-07-01T12:28:39.377+05:30 INFO 240950 --- [eureka-server] [ main] c.l.e.EurekaServerApplication : No active profile set, falling back to 1 default profile: "default"
2024-07-01T12:28:40.723+05:30 INFO 240950 --- [eureka-server] [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=8f3ec10f-59cd-397d-82f3-7da97306a40e
2024-07-01T12:28:40.790+05:30 WARN 240950 --- [eureka-server] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.LoadBalancerAutoConfiguration$DeferringLoadBalancerInterceptorConfig' of type [org.springframework.cloud.client.loadbalancer.LoadBalancerAutoConfiguration$DeferringLoadBalancerInterceptorConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). The currently created BeanPostProcessor [lbRestClientPostProcessor] is declared through a non-static factory method on that class; consider declaring it as static instead.
2024-07-01T12:28:40.793+05:30 WARN 240950 --- [eureka-server] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'deferringLoadBalancerInterceptor' of type [org.springframework.cloud.client.loadbalancer.DeferringLoadBalancerInterceptor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [lbRestClientPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-07-01T12:28:41.103+05:30 INFO 240950 --- [eureka-server] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8761 (http)
2024-07-01T12:28:41.118+05:30 INFO 240950 --- [eureka-server] [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2024-07-01T12:28:41.119+05:30 INFO 240950 --- [eureka-server] [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.25]
2024-07-01T12:28:41.198+05:30 INFO 240950 --- [eureka-server] [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2024-07-01T12:28:41.200+05:30 INFO 240950 --- [eureka-server] [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1749 ms
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
2024-07-01T12:28:42.266+05:30 INFO 240950 --- [eureka-server] [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON encoding codec LegacyJacksonJson
2024-07-01T12:28:42.268+05:30 INFO 240950 --- [eureka-server] [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON decoding codec LegacyJacksonJson
2024-07-01T12:28:42.506+05:30 INFO 240950 --- [eureka-server] [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML encoding codec XStreamXml
2024-07-01T12:28:42.506+05:30 INFO 240950 --- [eureka-server] [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML decoding codec XStreamXml
2024-07-01T12:28:43.660+05:30 WARN 240950 --- [eureka-server] [ main] iguration$LoadBalancerCaffeineWarnLogger : Spring Cloud LoadBalancer is currently working with the default cache. While this cache implementation is useful for development and tests, it's recommended to use Caffeine cache in production.You can switch to using Caffeine cache, by adding it and org.springframework.cache.caffeine.CaffeineCacheManager to the classpath.
2024-07-01T12:28:43.698+05:30 INFO 240950 --- [eureka-server] [ main] o.s.c.n.eureka.InstanceInfoFactory : Setting initial instance status as: STARTING
2024-07-01T12:28:43.730+05:30 INFO 240950 --- [eureka-server] [ main] com.netflix.discovery.DiscoveryClient : Initializing Eureka in region us-east-1
2024-07-01T12:28:43.731+05:30 INFO 240950 --- [eureka-server] [ main] com.netflix.discovery.DiscoveryClient : Client configured to neither register nor query for data.
2024-07-01T12:28:43.740+05:30 INFO 240950 --- [eureka-server] [ main] com.netflix.discovery.DiscoveryClient : Discovery Client initialized at timestamp 1719817123739 with initial instances count: 0
2024-07-01T12:28:43.787+05:30 INFO 240950 --- [eureka-server] [ main] c.n.eureka.DefaultEurekaServerContext : Initializing ...
2024-07-01T12:28:43.790+05:30 INFO 240950 --- [eureka-server] [ main] c.n.eureka.cluster.PeerEurekaNodes : Adding new peer nodes [http://localhost:8761/eureka/]
2024-07-01T12:28:43.981+05:30 INFO 240950 --- [eureka-server] [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON encoding codec LegacyJacksonJson
2024-07-01T12:28:43.981+05:30 INFO 240950 --- [eureka-server] [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON decoding codec LegacyJacksonJson
2024-07-01T12:28:43.982+05:30 INFO 240950 --- [eureka-server] [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML encoding codec XStreamXml
2024-07-01T12:28:43.982+05:30 INFO 240950 --- [eureka-server] [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML decoding codec XStreamXml
2024-07-01T12:28:44.080+05:30 INFO 240950 --- [eureka-server] [ main] c.n.eureka.cluster.PeerEurekaNodes : Replica node URL: http://localhost:8761/eureka/
2024-07-01T12:28:44.088+05:30 INFO 240950 --- [eureka-server] [ main] c.n.e.registry.AbstractInstanceRegistry : Finished initializing remote region registries. All known remote regions: []
2024-07-01T12:28:44.089+05:30 INFO 240950 --- [eureka-server] [ main] c.n.eureka.DefaultEurekaServerContext : Initialized
2024-07-01T12:28:44.103+05:30 INFO 240950 --- [eureka-server] [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 1 endpoint beneath base path '/actuator'
2024-07-01T12:28:44.160+05:30 INFO 240950 --- [eureka-server] [ main] o.s.c.n.e.s.EurekaServiceRegistry : Registering application EUREKA-SERVER with eureka with status UP
2024-07-01T12:28:44.174+05:30 INFO 240950 --- [eureka-server] [ Thread-9] o.s.c.n.e.server.EurekaServerBootstrap : isAws returned false
2024-07-01T12:28:44.174+05:30 INFO 240950 --- [eureka-server] [ Thread-9] o.s.c.n.e.server.EurekaServerBootstrap : Initialized server context
2024-07-01T12:28:44.175+05:30 INFO 240950 --- [eureka-server] [ Thread-9] c.n.e.r.PeerAwareInstanceRegistryImpl : Got 1 instances from neighboring DS node
2024-07-01T12:28:44.175+05:30 INFO 240950 --- [eureka-server] [ Thread-9] c.n.e.r.PeerAwareInstanceRegistryImpl : Renew threshold is: 1
2024-07-01T12:28:44.175+05:30 INFO 240950 --- [eureka-server] [ Thread-9] c.n.e.r.PeerAwareInstanceRegistryImpl : Changing status to UP
2024-07-01T12:28:44.180+05:30 INFO 240950 --- [eureka-server] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 8761 (http) with context path '/'
2024-07-01T12:28:44.182+05:30 INFO 240950 --- [eureka-server] [ main] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 8761
2024-07-01T12:28:44.191+05:30 INFO 240950 --- [eureka-server] [ Thread-9] e.s.EurekaServerInitializerConfiguration : Started Eureka Server
2024-07-01T12:28:44.227+05:30 INFO 240950 --- [eureka-server] [ main] c.l.e.EurekaServerApplication : Started EurekaServerApplication in 5.504 seconds (process running for 5.993)
2024-07-01T12:29:43.049+05:30 INFO 240950 --- [eureka-server] [nio-8761-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-07-01T12:29:43.050+05:30 INFO 240950 --- [eureka-server] [nio-8761-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2024-07-01T12:29:43.054+05:30 INFO 240950 --- [eureka-server] [nio-8761-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 4 ms
Step 4: Visit the browser and check for the eureka dashboard
<dependency> <!-- As soon as this dependency is added it looks for a eureka server. if it is not found will give an error -->
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
Due to above dependency we added to each service, they get automatically registered in the eureka server.
Below is the console log of a service when they get started
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.3.1)
2024-07-01T12:40:06.983+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] c.l.c.CitizenServiceApplication : Starting CitizenServiceApplication using Java 17.0.11 with PID 241897 (/home/dhanushka/Documents/example-repos/vaccination_center/citizen-service/citizen-service/target/classes started by dhanushka in /home/dhanushka/Documents/example-repos/vaccination_center/citizen-service/citizen-service)
2024-07-01T12:40:06.992+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] c.l.c.CitizenServiceApplication : No active profile set, falling back to 1 default profile: "default"
2024-07-01T12:40:08.378+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2024-07-01T12:40:08.402+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 14 ms. Found 0 JPA repository interfaces.
2024-07-01T12:40:08.735+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=fb0b2e24-b658-3fbd-87e8-6edd652429f3
2024-07-01T12:40:09.034+05:30 WARN 241897 --- [CITIZEN-SERVICE] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.LoadBalancerAutoConfiguration$DeferringLoadBalancerInterceptorConfig' of type [org.springframework.cloud.client.loadbalancer.LoadBalancerAutoConfiguration$DeferringLoadBalancerInterceptorConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). The currently created BeanPostProcessor [lbRestClientPostProcessor] is declared through a non-static factory method on that class; consider declaring it as static instead.
2024-07-01T12:40:09.037+05:30 WARN 241897 --- [CITIZEN-SERVICE] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'deferringLoadBalancerInterceptor' of type [org.springframework.cloud.client.loadbalancer.DeferringLoadBalancerInterceptor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [lbRestClientPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-07-01T12:40:09.308+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8081 (http)
2024-07-01T12:40:09.320+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2024-07-01T12:40:09.320+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.25]
2024-07-01T12:40:09.378+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2024-07-01T12:40:09.380+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2274 ms
2024-07-01T12:40:09.567+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2024-07-01T12:40:09.617+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 6.5.2.Final
2024-07-01T12:40:09.655+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled
2024-07-01T12:40:09.998+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer
2024-07-01T12:40:10.030+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2024-07-01T12:40:10.385+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@106459d9
2024-07-01T12:40:10.387+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2024-07-01T12:40:10.446+05:30 WARN 241897 --- [CITIZEN-SERVICE] [ main] org.hibernate.orm.deprecation : HHH90000025: MySQLDialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default)
2024-07-01T12:40:10.811+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
2024-07-01T12:40:10.819+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2024-07-01T12:40:10.892+05:30 WARN 241897 --- [CITIZEN-SERVICE] [ main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2024-07-01T12:40:11.581+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] DiscoveryClientOptionalArgsConfiguration : Eureka HTTP Client uses RestTemplate.
2024-07-01T12:40:11.640+05:30 WARN 241897 --- [CITIZEN-SERVICE] [ main] iguration$LoadBalancerCaffeineWarnLogger : Spring Cloud LoadBalancer is currently working with the default cache. While this cache implementation is useful for development and tests, it's recommended to use Caffeine cache in production.You can switch to using Caffeine cache, by adding it and org.springframework.cache.caffeine.CaffeineCacheManager to the classpath.
2024-07-01T12:40:11.675+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] o.s.c.n.eureka.InstanceInfoFactory : Setting initial instance status as: STARTING
2024-07-01T12:40:11.768+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] com.netflix.discovery.DiscoveryClient : Initializing Eureka in region us-east-1
2024-07-01T12:40:11.779+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
2024-07-01T12:40:11.817+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] com.netflix.discovery.DiscoveryClient : Disable delta property : false
2024-07-01T12:40:11.817+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] com.netflix.discovery.DiscoveryClient : Single vip registry refresh property : null
2024-07-01T12:40:11.817+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] com.netflix.discovery.DiscoveryClient : Force full registry fetch : false
2024-07-01T12:40:11.817+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] com.netflix.discovery.DiscoveryClient : Application is null : false
2024-07-01T12:40:11.817+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] com.netflix.discovery.DiscoveryClient : Registered Applications size is zero : true
2024-07-01T12:40:11.817+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] com.netflix.discovery.DiscoveryClient : Application version is -1: true
2024-07-01T12:40:11.817+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] com.netflix.discovery.DiscoveryClient : Getting all instance registry info from the eureka server
2024-07-01T12:40:12.412+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] com.netflix.discovery.DiscoveryClient : The response status is 200
2024-07-01T12:40:12.415+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] com.netflix.discovery.DiscoveryClient : Starting heartbeat executor: renew interval is: 30
2024-07-01T12:40:12.420+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] c.n.discovery.InstanceInfoReplicator : InstanceInfoReplicator onDemand update allowed rate per min is 4
2024-07-01T12:40:12.428+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] com.netflix.discovery.DiscoveryClient : Discovery Client initialized at timestamp 1719817812427 with initial instances count: 0
2024-07-01T12:40:12.433+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] o.s.c.n.e.s.EurekaServiceRegistry : Registering application CITIZEN-SERVICE with eureka with status UP
2024-07-01T12:40:12.434+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] com.netflix.discovery.DiscoveryClient : Saw local status change event StatusChangeEvent [timestamp=1719817812434, current=UP, previous=STARTING]
2024-07-01T12:40:12.436+05:30 INFO 241897 --- [CITIZEN-SERVICE] [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_CITIZEN-SERVICE/192.168.1.44:CITIZEN-SERVICE:8081: registering service...
2024-07-01T12:40:12.456+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 8081 (http) with context path '/'
2024-07-01T12:40:12.457+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 8081
2024-07-01T12:40:12.489+05:30 INFO 241897 --- [CITIZEN-SERVICE] [ main] c.l.c.CitizenServiceApplication : Started CitizenServiceApplication in 6.228 seconds (process running for 6.73)
2024-07-01T12:40:12.695+05:30 INFO 241897 --- [CITIZEN-SERVICE] [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_CITIZEN-SERVICE/192.168.1.44:CITIZEN-SERVICE:8081 - registration status: 204
2024-07-01T12:40:42.417+05:30 INFO 241897 --- [CITIZEN-SERVICE] [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Disable delta property : false
2024-07-01T12:40:42.417+05:30 INFO 241897 --- [CITIZEN-SERVICE] [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Single vip registry refresh property : null
2024-07-01T12:40:42.417+05:30 INFO 241897 --- [CITIZEN-SERVICE] [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Force full registry fetch : false
2024-07-01T12:40:42.418+05:30 INFO 241897 --- [CITIZEN-SERVICE] [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Application is null : false
2024-07-01T12:40:42.418+05:30 INFO 241897 --- [CITIZEN-SERVICE] [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Registered Applications size is zero : true
2024-07-01T12:40:42.418+05:30 INFO 241897 --- [CITIZEN-SERVICE] [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Application version is -1: false
2024-07-01T12:40:42.419+05:30 INFO 241897 --- [CITIZEN-SERVICE] [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Getting all instance registry info from the eureka server
2024-07-01T12:40:42.453+05:30 INFO 241897 --- [CITIZEN-SERVICE] [freshExecutor-0] com.netflix.discovery.DiscoveryClient : The response status is 200
once our service got started we can see that in the eureka dashboard as follows