diff --git a/README.md b/README.md index 18e46246..2fef6b74 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,21 @@ log_file: "/tmp/gnatsd.log" # pid file pid_file: "/tmp/gnatsd.pid" + +# Some system overides + +# max_connections +max_connections: 100 + +# maximum protocol control line +max_control_line: 512 + +# maximum payload +max_payload: 65536 + +# slow consumer threshold +max_pending_size: 10000000 + ``` ## Monitoring @@ -95,7 +110,7 @@ If the monitoring port is enabled, the server will run a lightweight http server To test, run '``go run gnatsd.go -m 8222``' - reports various general statistics. +http://localhost:8222/varz reports various general statistics. ```json { @@ -131,9 +146,9 @@ To test, run '``go run gnatsd.go -m 8222``' } ``` - reports more detailed information on current connections. It uses a paging mechanism which defaults to 1024 connections. -You can control these via url arguments (limit and offset), e.g. . -You can also report detailed subscription information on a per connection basis using subs=1, e.g. . +http://localhost:8222/connz reports more detailed information on current connections. It uses a paging mechanism which defaults to 1024 connections. +You can control these via url arguments (limit and offset), e.g. http://localhost:8222/connz?limit=1&offset=1. +You can also report detailed subscription information on a per connection basis using subs=1, e.g. http://localhost:8222/connz?limit=1&offset=1&subs=1. ```json { @@ -179,7 +194,7 @@ You can also report detailed subscription information on a per connection basis ``` - reports information on active routes for a cluster. Routes are expected to be low, so there is no paging mechanism currently with this endpoint. It does support the subs arg line /connz, e.g. +http://localhost:8222/routez reports information on active routes for a cluster. Routes are expected to be low, so there is no paging mechanism currently with this endpoint. It does support the subs arg line /connz, e.g. http://localhost:8222/routez?subs=1 ```json { @@ -203,7 +218,7 @@ You can also report detailed subscription information on a per connection basis } ``` - reports detailed information about the current subscriptions and the routing data structure. +http://localhost:8222/subscriptionsz reports detailed information about the current subscriptions and the routing data structure. ```json {