private ChangesRequiringRestart getChangesRequiringRestart(StorBucketmoverConfig newConfig) { ChangesRequiringRestart changes = new ChangesRequiringRestart("stor-bucketmover"); changes.compare(this.minimum_recheck_interval_in_seconds, newConfig.minimum_recheck_interval_in_seconds, "minimum_recheck_interval_in_seconds", "Minimum time between bucket database iterations in the bucket mover. The\nminumum time is used when disks starts to get pretty full and we have plenty\nstuff we can move.\nrestart flag was added automatically and needs to be verified."); changes.compare(this.maximum_recheck_interval_in_seconds, newConfig.maximum_recheck_interval_in_seconds, "maximum_recheck_interval_in_seconds", "Maximum time between bucket database iterations in the bucket mover. The\nmaximum time is used when disks have plenty free space, so moving data is\nnot critical.\nrestart flag was added automatically and needs to be verified."); changes.compare(this.bucket_iteration_chunk, newConfig.bucket_iteration_chunk, "bucket_iteration_chunk", "Number of buckets to cache at a time when reading the bucket database\nrestart flag was added automatically and needs to be verified."); changes.compare(this.max_target_fill_rate_above_average, newConfig.max_target_fill_rate_above_average, "max_target_fill_rate_above_average", "Maximum fill rate above average fill rate for a target disk to be eligible\nas a target for a bucket move operation.\nrestart flag was added automatically and needs to be verified."); changes.compare(this.max_history_size, newConfig.max_history_size, "max_history_size", "Number of bucket mover runs to keep in history vector\nrestart flag was added automatically and needs to be verified."); changes.compare(this.max_pending, newConfig.max_pending, "max_pending", "Max concurrent pending bucket move operations scheduled in total.\nrestart flag was added automatically and needs to be verified."); changes.compare(this.operation_delay, newConfig.operation_delay, "operation_delay", "Operation delay. If set, the bucket mover will wait for this amount of\nmilliseconds between each operation. Useful in testing to make move run go\nslow enough to view without that much data.\nrestart flag was added automatically and needs to be verified."); return changes; }
private ChangesRequiringRestart getChangesRequiringRestart(Mmap newConfig) { ChangesRequiringRestart changes = new ChangesRequiringRestart("mmap"); changes.compareArray(this.options, newConfig.options, "options", "Multiple optional options for use with mmap", (a,b) -> new ChangesRequiringRestart("options").compare(a,b,"","Multiple optional options for use with mmap")); changes.compare(this.advise, newConfig.advise, "advise", "Advise to give to os when mapping memory."); return changes; }
private ChangesRequiringRestart getChangesRequiringRestart(StorBucketInitConfig newConfig) { ChangesRequiringRestart changes = new ChangesRequiringRestart("stor-bucket-init"); changes.compare(this.max_alien_files_logged, newConfig.max_alien_files_logged, "max_alien_files_logged", "The maximum number of alien files found during init that should be stored in\nmemory so they can be viewed on status page."); changes.compare(this.max_pending_info_reads_per_disk, newConfig.max_pending_info_reads_per_disk, "max_pending_info_reads_per_disk", "The maximum number of pending info reads to each disk during initialization."); changes.compare(this.min_pending_info_reads_per_disk, newConfig.min_pending_info_reads_per_disk, "min_pending_info_reads_per_disk", "The minimum number of pending info reads to each disk during initialization.\nWhen pending falls below this, we will resume database scan to add more\npending up to the maximum setting."); changes.compare(this.info_read_priority, newConfig.info_read_priority, "info_read_priority", "The priority of the read bucket info requests the initializer sends to the\npersistence layer. Currently chosen so that such operations will not pre-\nempt any regular external load or ideal state operations, but they will block\nvery low priority background operations such as periodic GC (default pri of\n200). A tradeoff must be made between fast initialization and the availability\nof data on the initializing node."); changes.compare(this.list_priority, newConfig.list_priority, "list_priority", "The priority of the list bucket requests the initializer sends to the\npersistence layer. Should always be lower than the read priority to ensure\nstarting to read wont make listing wait. However, listing is currently pretty\nmuch required to be done before starting anyhow, so this option does little\nunless your directories are not hardware independent."); changes.compare(this.complete_list_before_starting_read, newConfig.complete_list_before_starting_read, "complete_list_before_starting_read", "Whether the initializer should complete listing before starting to read\nbucket information. Shouldnt matter much performance wise so always set to\ntrue as it is now. Setting it false, disks done listing first will start\nto process info requests a bit earlier than otherwise."); return changes; }
private ChangesRequiringRestart getChangesRequiringRestart(Grow newConfig) { ChangesRequiringRestart changes = new ChangesRequiringRestart("grow"); changes.compare(this.initial, newConfig.initial, "initial", "Minimum initial size for any per document tables.\nDeprecated -> Use documentdb.allocation.xxx"); changes.compare(this.factor, newConfig.factor, "factor", "Grow factor in percent for any per document tables.\nDeprecated -> Use documentdb.allocation.xxx"); changes.compare(this.add, newConfig.add, "add", "Constant added when growing any per document tables.\nDeprecated -> Use documentdb.allocation.xxx"); changes.compare(this.numdocs, newConfig.numdocs, "numdocs", "The number of documents to amortize memory spike cost over\nDeprecated -> Use documentdb.allocation.xxx"); changes.compare(this.multivalueallocfactor, newConfig.multivalueallocfactor, "multivalueallocfactor", "The grow factor used when allocating buffers in the array store\nused in multi-value attribute vectors to store underlying values.\nDeprecated -> Use documentdb.allocation.xxx"); return changes; } }
private ChangesRequiringRestart getChangesRequiringRestart(Filedistributor newConfig) { ChangesRequiringRestart changes = new ChangesRequiringRestart("filedistributor"); changes.compare(this.configid, newConfig.configid, "configid", "All params must be flagged as 'restart' because this config is manually\nretrieved by ConfiguredApplication.start to init the rpc server\n\nfiledistributor rpc configuration"); return changes; } }
private ChangesRequiringRestart getChangesRequiringRestart(Cache newConfig) { ChangesRequiringRestart changes = new ChangesRequiringRestart("cache"); changes.compare(this.size, newConfig.size, "size", "How much memory is set aside for caching.\nNow only used for caching of dictionary lookups."); return changes; } }
private ChangesRequiringRestart getChangesRequiringRestart(Cpu newConfig) { ChangesRequiringRestart changes = new ChangesRequiringRestart("cpu"); changes.compare(this.cores, newConfig.cores, "cores", "The number of cores on the cpu.\nIf set to 0, this is sampled by using std::thread::hardware_concurrency()."); return changes; } }
private ChangesRequiringRestart getChangesRequiringRestart(StorStatusConfig newConfig) { ChangesRequiringRestart changes = new ChangesRequiringRestart("stor-status"); changes.compare(this.httpport, newConfig.httpport, "httpport", ""); return changes; }
private ChangesRequiringRestart getChangesRequiringRestart(Write newConfig) { ChangesRequiringRestart changes = new ChangesRequiringRestart("write"); changes.compare(this.io, newConfig.io, "io", "Control io options during write both under dump and fusion."); return changes; }
private ChangesRequiringRestart getChangesRequiringRestart(RpcProviderConfig newConfig) { ChangesRequiringRestart changes = new ChangesRequiringRestart("rpc-provider"); changes.compare(this.connectspec, newConfig.connectspec, "connectspec", ""); return changes; }
private ChangesRequiringRestart getChangesRequiringRestart(Rpc newConfig) { ChangesRequiringRestart changes = new ChangesRequiringRestart("rpc"); changes.compare(this.connectspec, newConfig.connectspec, "connectspec", ""); return changes; } }
private ChangesRequiringRestart getChangesRequiringRestart(StorMessageforwarderConfig newConfig) { ChangesRequiringRestart changes = new ChangesRequiringRestart("stor-messageforwarder"); changes.compare(this.route, newConfig.route, "route", ""); return changes; }
private ChangesRequiringRestart getChangesRequiringRestart(Qrs newConfig) { ChangesRequiringRestart changes = new ChangesRequiringRestart("qrs"); changes.compare(this.env, newConfig.env, "env", "Extra environment variables"); return changes; } }
private ChangesRequiringRestart getChangesRequiringRestart(Cache newConfig) { ChangesRequiringRestart changes = new ChangesRequiringRestart("cache"); changes.compare(this.initialentries, newConfig.initialentries, "initialentries", "Control number of cache entries preallocated.\nDefault is no preallocation.\nCan be set to a higher number to avoid resizing."); return changes; }
private ChangesRequiringRestart getChangesRequiringRestart(Filedistributor newConfig) { ChangesRequiringRestart changes = new ChangesRequiringRestart("filedistributor"); changes.compare(this.configid, newConfig.configid, "configid", "filedistributor rpc configuration"); return changes; } }
private ChangesRequiringRestart getChangesRequiringRestart(Feeding newConfig) { ChangesRequiringRestart changes = new ChangesRequiringRestart("feeding"); changes.compare(this.concurrency, newConfig.concurrency, "concurrency", "A number between 0.0 and 1.0 that specifies the concurrency when handling feed operations.\nWhen set to 1.0 all cores on the cpu is utilized.\n \n4 thread pools used for various aspect of feeding are configured based on this setting:\n1) Compressing and compacting documents\n2) Writing changes to attribute fields\n3) Inverting index fields\n4) Writing changes to index fields\n \nThe number of threads in pool 1 is calculated as:\nmax(ceil(hwinfo.cpu.cores * feeding.concurrency), summary.log.numthreads)\nThe number of threads in each of pools 2-4 is calculated as:\nmax(ceil((hwinfo.cpu.cores * feeding.concurrency)/3), indexing.threads)\nDeprecated -> Use documentdb.feeding.concurrency"); return changes; } }
private ChangesRequiringRestart getChangesRequiringRestart(PersistenceRpcConfig newConfig) { ChangesRequiringRestart changes = new ChangesRequiringRestart("persistence-rpc"); changes.compare(this.port, newConfig.port, "port", ""); return changes; }
private ChangesRequiringRestart getChangesRequiringRestart(Indexing newConfig) { ChangesRequiringRestart changes = new ChangesRequiringRestart("indexing"); changes.mergeChanges("write", this.write.getChangesRequiringRestart(newConfig.write)); changes.mergeChanges("read", this.read.getChangesRequiringRestart(newConfig.read)); changes.compare(this.threads, newConfig.threads, "threads", "Control number of threads used for indexing"); changes.compare(this.tasklimit, newConfig.tasklimit, "tasklimit", "Maximum number of pending operations for each of the internal\nindexing threads. Only used when visibility delay is zero."); changes.compare(this.semiunboundtasklimit, newConfig.semiunboundtasklimit, "semiunboundtasklimit", "Parameter used to calculate maximum number of pending operations\nfor each of the internal indexing threads when visibility delay is\nnonzero. The number is divided by the number of indexing threads,\ni.e. when indexing.threads is 4 and indexing.semiunboundtasklimit\nis 40000 then effective task limit is 10000."); return changes; }
private ChangesRequiringRestart getChangesRequiringRestart(Read newConfig) { ChangesRequiringRestart changes = new ChangesRequiringRestart("read"); changes.compare(this.io, newConfig.io, "io", "Control io options during read of stored documents.\nAll summary.read options will take effect immediately on new files written.\nOn old files it will take effect either upon compact or on restart."); changes.mergeChanges("mmap", this.mmap.getChangesRequiringRestart(newConfig.mmap)); return changes; }
private ChangesRequiringRestart getChangesRequiringRestart(QrStartConfig newConfig) { ChangesRequiringRestart changes = new ChangesRequiringRestart("qr-start"); changes.mergeChanges("jvm", this.jvm.getChangesRequiringRestart(newConfig.jvm)); changes.mergeChanges("qrs", this.qrs.getChangesRequiringRestart(newConfig.qrs)); changes.compare(this.ulimitv, newConfig.ulimitv, "ulimitv", "Set ulimit -v in start script? this is mainly a safeguard against JNI stuff leaking memory."); changes.mergeChanges("jdisc", this.jdisc.getChangesRequiringRestart(newConfig.jdisc)); return changes; }