Created
March 26, 2013 23:09
-
-
Save baldwinlouie/5250151 to your computer and use it in GitHub Desktop.
app.config for storage and manager
This file contains hidden or 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
| %% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*- | |
| %%====================================================================== | |
| %% | |
| %% LeoFS Manager | |
| %% | |
| %% Copyright (c) 2012 Rakuten, Inc. | |
| %% | |
| %% This file is provided to you under the Apache License, | |
| %% Version 2.0 (the "License"); you may not use this file | |
| %% except in compliance with the License. You may obtain | |
| %% a copy of the License at | |
| %% | |
| %% http://www.apache.org/licenses/LICENSE-2.0 | |
| %% | |
| %% Unless required by applicable law or agreed to in writing, | |
| %% software distributed under the License is distributed on an | |
| %% "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| %% KIND, either express or implied. See the License for the | |
| %% specific language governing permissions and limitations | |
| %% under the License. | |
| %% | |
| %%====================================================================== | |
| [ | |
| {sasl, [ | |
| {sasl_error_logger, {file, "./log/sasl/sasl-error.log"}}, | |
| {errlog_type, error}, | |
| {error_logger_mf_dir, "./log/sasl"}, | |
| {error_logger_mf_maxbytes, 10485760}, % 10 MB max file size | |
| {error_logger_mf_maxfiles, 5} % 5 files max | |
| ]}, | |
| {mnesia, [ | |
| {dir, "./work/mnesia/127.0.0.1"}, | |
| {dump_log_write_threshold, 50000}, | |
| {dc_dump_limit, 40} | |
| ]}, | |
| {leo_manager, [ | |
| %% == System Ver == | |
| {system_version, "0.14.0" }, | |
| %% == System Configuration == | |
| %% | |
| %% n: # of replicated files | |
| %% w: # of successes of write-operation | |
| %% r: # of successes of read-operation | |
| %% d: # of successes of delete-operation | |
| %% bit_of_ring: Ring size - 128 = 2^128 | |
| {system, [{n, 3 }, | |
| {w, 2 }, | |
| {r, 1 }, | |
| {d, 2 }, | |
| {bit_of_ring, 128} | |
| ]}, | |
| %% == Available Commands == | |
| {available_commands, all }, | |
| %% == Manager Properties == | |
| %% Mode of server - [master|slave] | |
| {manager_mode, master }, | |
| %% Partner of manager's alias | |
| {manager_partners, ["manager_1@127.0.0.1"] }, | |
| %% Manager accepatable port number | |
| {port_cui, 10010 }, | |
| {port_json, 10020 }, | |
| %% # of acceptors | |
| {num_of_acceptors_cui, 3}, | |
| {num_of_acceptors_json, 16}, | |
| %% Compaction: # of execution of conncurrent | |
| {num_of_compact_proc, 3 }, | |
| %% == Log-specific properties == | |
| %% | |
| %% Log output level | |
| %% 0: debug | |
| %% 1: info | |
| %% 2: warning | |
| %% 3: error | |
| {log_level, 0 }, | |
| %% Log appender - [file] | |
| {log_appender, [ | |
| {file, [{path, "./log/app"}]} | |
| ]}, | |
| %% == Directories == | |
| %% | |
| %% Directory of log output | |
| {log_dir, "./log"}, | |
| %% Directory of mq's db-file | |
| {queue_dir, "./work/queue"}, | |
| %% Directory of snmp-agent | |
| {snmp_agent, "./snmp/snmpa_manager_0/LEO-MANAGER"} | |
| ]}, | |
| {leo_backend_db, [{profile, false}]}, | |
| {leo_logger, [{profile, false}]}, | |
| {leo_mq, [{profile, false}, | |
| {backend_db, 'bitcask'} | |
| ]}, | |
| {leo_object_storage, [{profile, false}]}, | |
| {leo_redundant_manager, [{profile, false}, | |
| {notify_mf, [leo_manager_api, notify]}, | |
| {sync_mf, [leo_manager_api, synchronize]} | |
| ]}, | |
| {leo_statistics, [{profile, false}]} | |
| ]. |
This file contains hidden or 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
| %% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*- | |
| %%====================================================================== | |
| %% | |
| %% LeoFS Storage | |
| %% | |
| %% Copyright (c) 2012 Rakuten, Inc. | |
| %% | |
| %% This file is provided to you under the Apache License, | |
| %% Version 2.0 (the "License"); you may not use this file | |
| %% except in compliance with the License. You may obtain | |
| %% a copy of the License at | |
| %% | |
| %% http://www.apache.org/licenses/LICENSE-2.0 | |
| %% | |
| %% Unless required by applicable law or agreed to in writing, | |
| %% software distributed under the License is distributed on an | |
| %% "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| %% KIND, either express or implied. See the License for the | |
| %% specific language governing permissions and limitations | |
| %% under the License. | |
| %% | |
| %%====================================================================== | |
| [ | |
| {sasl, [ | |
| {sasl_error_logger, {file, "./log/sasl/sasl-error.log"}}, | |
| {errlog_type, error}, | |
| {error_logger_mf_dir, "./log/sasl"}, | |
| {error_logger_mf_maxbytes, 10485760}, % 10 MB max file size | |
| {error_logger_mf_maxfiles, 5} % 5 files max | |
| ]}, | |
| {leo_storage, [ | |
| %% == System Ver == | |
| {system_version, "0.14.0-RC2" }, | |
| %% == Storage Configuration == | |
| %% | |
| %% Object containers properties: | |
| %% @param path - Directory of object-containers | |
| %% @param num_of_containers - # of object-containers | |
| %% | |
| %% Notes: | |
| %% If you set up LeoFS on 'development', default value - "./avs" - is OK. | |
| %% If you set up LeoFS on 'production' or 'staging', You should need to change "volume", | |
| %% And We recommend volume's partition is XFS. | |
| %% | |
| %%{obj_containers, [[{path, "./avs"}, {num_of_containers, 64}]] }, | |
| {obj_containers, [[{path, "/mnt/xfs"}, {num_of_containers, 64}]] }, | |
| %% leo-manager's nodes | |
| %%{managers, ["manager_0@10.121.0.51", "manager_1@127.0.0.1"] }, | |
| {managers, ["manager_0@10.121.0.63"] }, | |
| %%{managers, ["manager_0@ec2-54-249-149-105.ap-northeast-1.compute.amazonaws.com"] }, | |
| %%{managers, ["manager_0@127.0.0.1"] }, | |
| %% # of virtual-nodes | |
| {num_of_vnodes, 168 }, | |
| %% # of mq-server's processes | |
| {num_of_mq_procs, 8 }, | |
| %% == For Ordning-Reda == | |
| %% Size of stacked objects (bytes) | |
| {size_of_stacked_objs, 67108864 }, | |
| %% Stacking timeout (msec) | |
| {stacking_timeout, 5000 }, | |
| %% == Log-specific properties == | |
| %% | |
| {log_level, 1 }, | |
| {log_appender, [ | |
| {file, [{path, "./log/app"}]} | |
| ]}, | |
| %% == Directories == | |
| %% | |
| %% Directory of log output | |
| {log_dir, "./log"}, | |
| %% Directory of mq's db-files | |
| {queue_dir, "./work/queue"}, | |
| %% Directory of SNMP-Agent | |
| {snmp_agent, "./snmp/snmpa_storage_0/LEO-STORAGE"} | |
| ]}, | |
| {leo_backend_db, [{profile, false}]}, | |
| {leo_logger, [{profile, false}]}, | |
| {leo_mq, [{profile, false}, | |
| {backend_db, 'bitcask'} | |
| ]}, | |
| {leo_object_storage, [{profile, false}, | |
| {metadata_storage, 'bitcask'} | |
| ]}, | |
| {leo_ordning_reda, [{profile, false}, | |
| {send_after_interval, 100} | |
| ]}, | |
| {leo_redundant_manager, [{profile, false}, | |
| {notify_mf, [leo_manager_api, notify]}, | |
| {sync_mf, [leo_manager_api, synchronize]} | |
| ]}, | |
| {leo_statistics, [{profile, false}]} | |
| ]. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment