JLUPIN PLATFORM WEBSITE
tutorials
  • Rating:
  • Views: 421
  • Author: JLupin
  • Skill level: easy
  • Comments: 0

Migration

Below are described steps to migrate your microservice from 1.4.1.0-RC4 to 1.4.1.0-RC5.

Plugins

It is necessary to update plugins. New version of JLupin Next Server Maven Plugin (1.1.2) and JLupin Next Server IntelliJ Plugin (1.2.4) are also available. Since now IntelliJ Plugin can be also downloaded from official Jet Brains repository.

Native microservice configuration file

There are some new configuration keys for native microservice so you need to update your configuration.yml file.

First of all you need to put a new section called "ENTRY_POINTS"

ENTRY_POINTS:
  QUEUE:
     threadAmount: 512
     howOftenCheckingServerInMillis: 5000
     repeatsAmount: 4
     timeToWaitBetweenRepeatProbeInMillis: 1000

which is necessary for asynchronous processing through reactive queues.

You should also change some values for "SERVERS" -> "QUEUE". Update "backlog" and "receiveBufferSize" and set them to 1024 value for example.

And no matter if you want to use queues or not add new keys "PROPERTIES" section:

PROPERTIES:
  externalPort: '8000'
  version: '1.0'

External port is a setting for edge load balancer and version is just a version. It helps to check what is running on server.

Servlet microservice configuration file

For servlet microservice you must also add new keys to "PROPERTIES" section:

PROPERTIES:
  externalPort: '8000'
  version: '1.0'

Again external port is a setting for edge load balancer and version is just a version. It helps to check what is running on server.

Servlet microservice dependencies

For previous version (1.4.1.0-RC4) there was only one version of "jlupin-servlet-monitor". Since new version (1.4.1.0-RC5) there is a change, and there are 2 versions. For Spring Boot 1.x you should use "jlupin-spring-boot-1-servlet-monitor" and for Spring Boot 2.x you should use "jlupin-spring-boot-2-servlet-monitor".

<dependency>
    <groupId>com.jlupin</groupId>
    <artifactId>jlupin-servlet-monitor</artifactId>
    <artifactId>jlupin-spring-boot-1-servlet-monitor</artifactId>
    <version>${jlupin.servlet.monitor.version}</version>
</dependency>

RATE & DISCUSS (0)

No comments found.