123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <?php
- return [
- 'consumers' => [
- [
-
- 'name' => 'UserService',
- 'service' => \App\JsonRpc\UserServiceInterface::class,
-
- 'nodes' => [
- ['host' => '127.0.0.1', 'port' => 9504],
- ],
- ],
- [
-
- 'name' => 'AuthorityService',
- 'service' => \App\JsonRpc\AuthorityServiceInterface::class,
-
- 'nodes' => [
- ['host' => '127.0.0.1', 'port' => 9504],
- ],
- ],
- [
-
- 'name' => 'AdService',
- 'service' => \App\JsonRpc\AdServiceInterface::class,
-
- 'nodes' => [
- ['host' => '127.0.0.1', 'port' => 9503],
- ],
- ],
- [
-
- 'name' => 'WebsiteService',
- 'service' => \App\JsonRpc\WebsiteServiceInterface::class,
-
- 'nodes' => [
- ['host' => '127.0.0.1', 'port' => 9502],
- ],
- ],
- [
-
- 'name' => 'PublicRpcService',
- 'service' => \App\JsonRpc\PublicRpcServiceInterface::class,
-
- 'nodes' => [
- ['host' => '127.0.0.1', 'port' => 9502],
- ],
- 'settings' => [
- 'open_length_check' => true,
- 'package_max_length' => 15 * 1024 * 1024,
- 'package_length_type' => 'N',
- 'package_body_offset' => 8,
- 'package_length_offset' => 4,
- 'package_length_field' => 'length',
- ],
- 'options' => [
- 'connect_timeout' => 50.0,
- 'read_timeout' => 100.0,
- 'write_timeout' => 100.0,
- ],
- 'pool' => [
- 'min_connections' => 1,
- 'max_connections' => 30,
- 'connect_timeout' => 100.0,
- 'wait_timeout' => 30.0,
- 'heartbeat' => -1,
- 'max_idle_time' => 60.0,
- ],
- ],
- [
-
- 'name' => 'NewsService',
- 'service' => \App\JsonRpc\NewsServiceInterface::class,
-
- 'nodes' => [
- ['host' => '127.0.0.1', 'port' => 9505],
- ],
- ],
- [
-
- 'name' => 'LinkService',
- 'service' => \App\JsonRpc\LinkServiceInterface::class,
-
- 'nodes' => [
- ['host' => '127.0.0.1', 'port' => 9502],
- ],
- ],
- [
-
- 'name' => 'ChatService',
- 'service' => \App\JsonRpc\ChatServiceInterface::class,
-
- 'nodes' => [
- ['host' => '127.0.0.1', 'port' => 9507],
- ],
- ],
- [
-
- 'name' => 'OrderService',
- 'service' => \App\JsonRpc\OrderServiceInterface::class,
-
- 'nodes' => [
- ['host' => '127.0.0.1', 'port' => 9508],
- ],
- ],
- [
-
- 'name' => 'CollectorService',
- 'service' => \App\JsonRpc\CollectorServiceInterface::class,
-
- 'nodes' => [
- ['host' => '127.0.0.1', 'port' => 9509],
- ],
- ],
- [
-
- 'name' => 'FooterService',
- 'service' => \App\JsonRpc\FooterServiceInterface::class,
-
- 'nodes' => [
- ['host' => '127.0.0.1', 'port' => 9502],
- ],
- ],
- ],
- ];
|