Skip to content

Instantly share code, notes, and snippets.

@korneil
Created March 29, 2012 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save korneil/2237102 to your computer and use it in GitHub Desktop.
Save korneil/2237102 to your computer and use it in GitHub Desktop.
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