This page is out of date, it will be updated shortly, please use http://blog.anotheria.net/msk/the-complete-moskito-integration-guide-step-4-central-storage/ for instructions on moskito-central
Why Remote Mode?
There are 2 modes for MoSKito-Central deployment:
- Remote (Standalone app).
In Remote mode, MoSKito-Central is working as a separate application and uses:
- DistributeMe and REST EndPoints for receiving data from other applications.
- Dedicated machine's filesystem for processing and storing the received performance data.
The Remote (Standalone) Mode is useful when you need to monitor multiple application instances (multiple JVM's) and consolidate the obtained performance data in one place.
The Embedded mode cannot be used here, since we gather info from multiple servers (not a single JVM), and MoSKito-Central needs to have a separate space for data storage.
How Remote Mode Works
The flowchart below shows how the process is set up, step by step.
The workflow stages are the following:
- MoSKito-Central is instantiated on a remote (dedicated) machine.
- MoSKito plug-in, initiated on a app server (like Tomcat), fetches performance data from MoSKito-Essential, which resides in the target (monitored) web application.
- The collected data is transferred to MoSKito-Central in one of the following ways:
- directly, through EmbeddedConnector,
- via RMI, through DistributeMeConnector, or
- via HTTP, through RESTConnector.
- The data is processed and stored in application memory, file system (json, xml or csv files) or database.
How to Set It Up
To set up MoSKito-Central in Remote mode, you'll need to:
- Enable MoSKito-Central.
- Configure storages.
Make a reference to MoSKito-Central in pom.xml of your project:
Please refer to maven for the latest version: http://search.maven.org/#search%7Cga%7C1%7Cmoskito-central
If you use another build tool, you will need to put moskito-central.jar and other libs in your project.
To enable MoSKito-Central, add the corresponding plug-in to moskito.json configuration file.
For transferring data via HTTP with REST Connector:
For transferring data via RMI with DistributeMe Connector:
Storage configuration is the same for both Embedded and Remote Modes.
That is why it is fully described in Configure MoSKito-Central Storage section.