My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Configuration  
How to configure Kesmin
Updated Aug 17, 2010 by thirstyf...@gmail.com

You will find Kesmin's configuration file in config.json. As you may have guessed, it is a JSON file, so make sure whatever you write contains valid JSON.

There is a sample config file in sample_config.json. You will need to make your own config.json or Kesmin won't work! The simplest way to do this is just to copy sample_config.json to config.json. Don't modify sample_config.json - it may get changed in an update!

For reference, this is the default sample_config.json (in case you kill it):

{
        "kestrel": {
                "default": {
                        "default":{"host":"localhost","port":22133}
                }
        }
}

Below is a reference for each of the sections of the configuration

Kestrel

The kestrel server configuration is stored under the "kestrel" key of the configuration object. It contains an object that contains all of the kestrel clusters. The key is the name of the cluster, and the value is an object containing the nodes in that cluster. Note: the cluster's name is only for reference in the Kesmin frontend.

The object which specifies the nodes works in a similar way; the keys are Kesmin's reference name for that node, and the value is an object specifying a host and port for that kestrel server.

So in the sample configuration file, there is a 'default' cluster, containing a single node called 'default', which is running on localhost:22133, kestrel's default.


Sign in to add a comment
Powered by Google Project Hosting