public
Created

app.config for storage and manager

  • Download Gist
manager app.config
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
%% -*- 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}]}
].
storage app.config
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
%% -*- 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}]}
].

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.