From 7b454188d23c81d87ee6bf118c6cc19ac09a4468 Mon Sep 17 00:00:00 2001 From: "smallchi(Koike)" <564952747@qq.com> Date: Wed, 5 Feb 2020 00:34:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../appsettings.json | 29 +++++++++++++++++++ .../appsettings.json | 24 +++++++++++++++ .../appsettings.json | 8 +++++ .../appsettings.json | 16 ++++++++++ .../appsettings.json | 22 ++++++++++++++ 5 files changed, 99 insertions(+) create mode 100644 simples/JT808.Gateway.SimpleServer/appsettings.json create mode 100644 src/JT808.Gateway.Benchmark/JT808.Gateway.CleintBenchmark/appsettings.json create mode 100644 src/JT808.Gateway.Benchmark/JT808.Gateway.ServerBenchmark/appsettings.json create mode 100644 src/JT808.Gateway.Tests/JT808.Gateway.NormalHosting/appsettings.json create mode 100644 src/JT808.Gateway.Tests/JT808.Gateway.QueueHosting/appsettings.json diff --git a/simples/JT808.Gateway.SimpleServer/appsettings.json b/simples/JT808.Gateway.SimpleServer/appsettings.json new file mode 100644 index 0000000..fd59b0f --- /dev/null +++ b/simples/JT808.Gateway.SimpleServer/appsettings.json @@ -0,0 +1,29 @@ +{ + "Logging": { + "IncludeScopes": false, + "Debug": { + "LogLevel": { + "Default": "Trace" + } + }, + "Console": { + "LogLevel": { + "Default": "Trace" + } + } + }, + "JT808Configuration": { + "TcpPort": 808, + "UdpPort": 808, + "WebApiPort": 828, + "WebApiToken": "smallchi518" + }, + "RemoteServerOptions": { + "DataTransfer": [ + { + "Host": "127.0.0.1:20000", + "TerminalNos": [] + } + ] + } +} diff --git a/src/JT808.Gateway.Benchmark/JT808.Gateway.CleintBenchmark/appsettings.json b/src/JT808.Gateway.Benchmark/JT808.Gateway.CleintBenchmark/appsettings.json new file mode 100644 index 0000000..7611940 --- /dev/null +++ b/src/JT808.Gateway.Benchmark/JT808.Gateway.CleintBenchmark/appsettings.json @@ -0,0 +1,24 @@ +{ + "Logging": { + "IncludeScopes": false, + "Debug": { + "LogLevel": { + "Default": "Error" + } + }, + "Console": { + "LogLevel": { + "Default": "Error" + } + } + }, + "AllowedHosts": "*", + //"urls": "http://*:15004;", + "ClientBenchmarkOptions": { + "IP": "127.0.0.1", + "Port": 808, + "DeviceCount": 100, + "Interval": 1000, + "DeviceTemplate": 100000 //需要多台机器同时访问,那么可以根据这个避开重复终端号 100000-200000-300000 + } +} diff --git a/src/JT808.Gateway.Benchmark/JT808.Gateway.ServerBenchmark/appsettings.json b/src/JT808.Gateway.Benchmark/JT808.Gateway.ServerBenchmark/appsettings.json new file mode 100644 index 0000000..1343560 --- /dev/null +++ b/src/JT808.Gateway.Benchmark/JT808.Gateway.ServerBenchmark/appsettings.json @@ -0,0 +1,8 @@ +{ + "JT808Configuration": { + "TcpPort": 808, + "UdpPort": 808, + "MiniNumBufferSize": 102400, + "SoBacklog": 204800 + } +} diff --git a/src/JT808.Gateway.Tests/JT808.Gateway.NormalHosting/appsettings.json b/src/JT808.Gateway.Tests/JT808.Gateway.NormalHosting/appsettings.json new file mode 100644 index 0000000..8b644c5 --- /dev/null +++ b/src/JT808.Gateway.Tests/JT808.Gateway.NormalHosting/appsettings.json @@ -0,0 +1,16 @@ +{ + "JT808Configuration": { + "TcpPort": 808, + "UdpPort": 808, + "MiniNumBufferSize": 51200, + "SoBacklog": 65535 + }, + "RemoteServerOptions": { + "DataTransfer": [ + { + "Host": "127.0.0.1:20000", + "TerminalNos": [] + } + ] + } +} diff --git a/src/JT808.Gateway.Tests/JT808.Gateway.QueueHosting/appsettings.json b/src/JT808.Gateway.Tests/JT808.Gateway.QueueHosting/appsettings.json new file mode 100644 index 0000000..2cc2a42 --- /dev/null +++ b/src/JT808.Gateway.Tests/JT808.Gateway.QueueHosting/appsettings.json @@ -0,0 +1,22 @@ +{ + "JT808Configuration": { + "TcpPort": 808, + "UdpPort": 808, + "MiniNumBufferSize": 51200, + "SoBacklog": 65535 + }, + "JT808MsgProducerConfig": { + "TopicName": "JT808Msg", + "BootstrapServers": "127.0.0.1:9092" + }, + "JT808MsgReplyConsumerConfig": { + "TopicName": "JT808MsgReply", + "GroupId": "msgreply-group", + "EnableAutoCommit": true, + "BootstrapServers": "127.0.0.1:9092" + }, + "JT808SessionProducerConfig": { + "TopicName": "JT808Session", + "BootstrapServers": "127.0.0.1:9092" + } +}