Skip to content

Debugger client/server #7

@joamag

Description

@joamag

Description

The current netius infra-structure does not have any kind of runtime based debugging capabilities that are able to discover complex runtime CPU usage or RAM consuming.

The new infra-structure (netiusd) should be able to print/debug diagnostics information on the netius infra-structure on demand and using a command line based (interactive) approach.

The impact (performance) on the host server should be minimal to zero.

The debugger should be able to stop the loop and then resume it (operations).

Solution

On the host/server side a flag should be set so that the proper Appier HTTP service is loaded and is able to provide a client with diagnostics information. The service should include a conditional constant stream of information (http chunked) that refreshes on each tick of the main service loop.

On the client side a simple interactive console application should be created using the Appier HTTP client infra-structure.

The configuration values that are related with the diagnostics service (default values) are:

DIAG=0
DIAG_PORT=5050
DIAG_HOST=127.0.0.1

In case the diagnostics service is requested (DIAG=1) and it fails to load an INFO message should be printed but the system should keep running (failing gracefully).

Estimation

2 days

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestp-highHigh priority issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions