Soul 2.0 release, high performance gateway responsive

Soul Gateway version 2.0 released

  • Data synchronization method to remove the strong dependence on the zookeeper, the new long polling http and websocket.
  • Limiting plug-in configuration and monitoring plugin: configuration from the previous yml inside, instead admin users to dynamically configure the background.
  • Enable admin background, automatically execute sql pace, users do not need to manually create the database again.
  • Built-in cross-domain solutions. Remove springboot health checks.
  • Fix bug RoundRobinLoadBalance of.

Old users to upgrade guide

  • First, plugin table, added a config field. So it is necessary to add. Perform the following footsteps
ALTER TABLE plugin ADD COLUMN config text COLLATE utf8mb4_unicode_ci COMMENT '插件配置';

If you want to continue using zookeeper synchronize data proceed as follows:

  1. soul-adminThe yml replaced by the following configuration, before removing. You can refer to the github soul-adminconfiguration
soul:
  sync:
      strategy: zookeeper
      zookeeper:
        url: localhost:2181
        sessionTimeout: 5000
        connectionTimeout: 2000
  1. Start admin, into the plug-in management, click on the full amount of the update.
  2. Configure soul-bootstrapthe following restart. update completed.
soul :
    filterTimeEnable : false
    filterTime : 10
    sync:
        strategy: zookeeper
        zookeeper:
              url: localhost:2181
              sessionTimeout: 5000
              connectionTimeout: 2000
#        http:
#             url : localhost:8888

The new user environment build guide

1. First, getsoul-admin.jar

> wget  https://yu199195.github.io/jar/soul-admin.jar

2. Start soul-admin.jar

java -jar soul-admin.jar -Dspring.datasource.url="你的数据库url"  
-Dspring.datasource.username='你的数据库用户名'  -Dspring.datasource.password='你的数据库密码'

3. Start a successful visit: http: // localhost: 8887 / index.html admin user password is 123456

4. First, getsoul-bootstrap.jar

> wget  https://yu199195.github.io/jar/soul-bootstrap.jar
  1. Start soul-bootstrap.jarsetting up is completed.
 java -jar soul-bootstrap.jar

Three ways to synchronize data

HTTP长轮询(soul提供的jar包中,默认使用的是http长轮询策略。)

soul-admin.jar in yml configured as follows:

soul:
  sync:
      strategy: http

soul-bootstrap.jar in yml configured as follows:

soul:
  sync:
      strategy: http
      http:
         url : http://localhost:8887

Websocket同步

soul-admin.jar in yml configured as follows:

soul:
  sync:
      strategy: websocket

soul-bootstrap.jar in yml configured as follows:

soul:
  sync:
      strategy: websocket
      websocket:
         url : ws://localhost:8887/websocket

Zookeeper同步

soul-admin.jar in yml configured as follows:

soul:
  sync:
      strategy: zookeeper
      zookeeper:
        url: localhost:2181
        sessionTimeout: 5000
        connectionTimeout: 2000

soul-bootstrap.jar in yml configured as follows:

soul:
  sync:
      strategy: zookeeper
      zookeeper:
        url: localhost:2181
        sessionTimeout: 5000
        connectionTimeout: 2000

Limiting plug-in configuration, and monitoring plug-in

  • Before was soul-bootstrap.jarcarried out reids with influxdb configuration of yml in, is now the soul-adminlimiting plug-in plug-in management and monitoring plug-in is configured.

  • When using the configuration, make sure that the plug is open. And ensure that the configuration is correct.

Warehouse Address

  • github: https://github.com/Dromara/soul
  • gitee: https://gitee.com/shuaiqiyu/soul
  • Interested friends can join in, for development.

Guess you like

Origin www.oschina.net/news/108322/soul-2-0-released