Created
March 29, 2012 12:40
-
-
Save korneil/2237102 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.Config={ | |
backend:{ | |
host:"nodejs", | |
port:80 | |
}, | |
files:{ | |
chunkSize:1024*100, // size of chunks that a file is requested from server, saved, removed etc (bytes) | |
timeout404:60, // remove file from 404 list if it was not found after given amount of seconds (seconds) | |
//recheckBackendStatus:3600, // check if file's status and size changed on backend (seconds) | |
maxStorageSize:20*1024*1024, // maximum storage used for cached files (bytes) | |
}, | |
cluster:{ | |
instances:require("os").cpus().length // number of http server processes | |
}, | |
db:{ | |
file:"database.db" // filename of sqlite3 db | |
}, | |
manager:{ | |
port:6636, // port that manager node is listening on | |
loadInfoBroadcast:5, // send load info of system to other nodes in this interval (seconds) | |
bulkFileSendPackSize:1000, // send this amount of file metadata when connecting to a manager at once | |
loadLimit:0.6, | |
remoteLoadLimit:0.6, | |
remoteLoadHardLimit:0.8, | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment