mirror of
https://github.com/EvernodeXRPL/sashimono.git
synced 2026-04-29 15:38:00 +00:00
Automation scripts for Evernode cluster deployment. (#67)
* Message board install automation with faucet host account generation. * Deregister Evernode host on uninstall. * Used Evernode client lib in message board. * Removed file logging by default in Sashimono services. * Evernode cluster spin-up script. * Cleaned up hp.cfg template.
This commit is contained in:
@@ -62,11 +62,11 @@ namespace conf
|
||||
cfg.hp.init_peer_port = 22861;
|
||||
cfg.hp.init_user_port = 8081;
|
||||
|
||||
cfg.system.max_instance_count = 5;
|
||||
cfg.system.max_instance_count = 3;
|
||||
cfg.system.max_mem_kbytes = 1048576; // Total 1GB RAM
|
||||
cfg.system.max_swap_kbytes = 3145728; // Total 3GB swap.
|
||||
cfg.system.max_cpu_us = 5000000; // CPU cfs period cannot be less than 1ms (i.e. 1000) or larger than 1s (i.e. 1000000) per instance.
|
||||
cfg.system.max_storage_kbytes = 5242880; // Total 5GB
|
||||
cfg.system.max_storage_kbytes = 5242880; // Total 5GB disk storage.
|
||||
|
||||
const std::string img_prefix = registry_addr.empty() ? "hotpocketdev" : std::string(registry_addr);
|
||||
cfg.docker.images["hp.latest-ubt.20.04"] = img_prefix + "/sashimono:hp.latest-ubt.20.04";
|
||||
@@ -76,7 +76,10 @@ namespace conf
|
||||
cfg.log.max_mbytes_per_file = 10;
|
||||
cfg.log.log_level = "inf";
|
||||
cfg.log.loggers.emplace("console");
|
||||
cfg.log.loggers.emplace("file");
|
||||
|
||||
// We don't enable file logging by default because Sashimono running as a systemd service
|
||||
// would automatically log console output to journal log.
|
||||
// cfg.log.loggers.emplace("file");
|
||||
|
||||
// Save the default settings into the config file.
|
||||
if (write_config(cfg) != 0)
|
||||
|
||||
Reference in New Issue
Block a user