- Servers
- Benchmark-server: x1
- Core:32, Xeon
- RAM:32GB
- Gateway-server: x1
- Core:32, Xeon
- Benchmark-server: x1
- RAM:32GB
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
require 'aws-sdk' | |
Endpoint = "localhost" | |
Port = 8080 | |
class LeoFSHandler < AWS::Core::Http::NetHttpHandler | |
def handle(request, response) | |
request.port = ::Port | |
super | |
end |
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
Eshell V5.9.3.1 (abort with ^G) | |
1> leo_pod:test(eredis_pool_0). | |
src/leo_pod_test.erl:64:<0.37.0>: WorkerArgs = [{protocol,tcp},{host,"127.0.0.1"},{port,8080}] | |
src/leo_pod_test.erl:64:<0.38.0>: WorkerArgs = [{protocol,tcp},{host,"127.0.0.1"},{port,8080}] | |
src/leo_pod_test.erl:64:<0.39.0>: WorkerArgs = [{protocol,tcp},{host,"127.0.0.1"},{port,8080}] | |
src/leo_pod_test.erl:64:<0.40.0>: WorkerArgs = [{protocol,tcp},{host,"127.0.0.1"},{port,8080}] | |
src/leo_pod_test.erl:64:<0.41.0>: WorkerArgs = [{protocol,tcp},{host,"127.0.0.1"},{port,8080}] | |
src/leo_pod_test.erl:64:<0.42.0>: WorkerArgs = [{protocol,tcp},{host,"127.0.0.1"},{port,8080}] | |
src/leo_pod_test.erl:64:<0.43.0>: WorkerArgs = [{protocol,tcp},{host,"127.0.0.1"},{port,8080}] | |
src/leo_pod_test.erl:64:<0.44.0>: WorkerArgs = [{protocol,tcp},{host,"127.0.0.1"},{port,8080}] |
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
$ snmpwalk -v 2c -c public 127.0.0.1:4020 .1.3.6.1.4.1.35450 | |
iso.3.6.1.4.1.35450.11.1.0 = STRING: "manager_0@127.0.0.1" | |
iso.3.6.1.4.1.35450.11.2.0 = Gauge32: 144 | |
iso.3.6.1.4.1.35450.11.3.0 = Gauge32: 34802755 | |
iso.3.6.1.4.1.35450.11.4.0 = Gauge32: 30823503 | |
iso.3.6.1.4.1.35450.11.5.0 = Gauge32: 4397032 | |
iso.3.6.1.4.1.35450.11.6.0 = Gauge32: 1120984 | |
iso.3.6.1.4.1.35450.11.7.0 = Gauge32: 144 | |
iso.3.6.1.4.1.35450.11.8.0 = Gauge32: 35184821 | |
iso.3.6.1.4.1.35450.11.9.0 = Gauge32: 30810770 |
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
%% Embedding leo-gateway in an application | |
%% | |
ok = leofs:start(), | |
not_found = leofs:get(<<"key/1">>), | |
{ok, ETag} = leofs:put(<<"key/1">>, <<"value_1">>), | |
{ok, {ETag, Bin}} = leofs:get(<<"key/1">>), | |
ok = leofs:delete(<<"key/1">>), |
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
## | |
## Retrieve object's metadata with S3-Client from LeoFS | |
## | |
require "aws-sdk" | |
Port = 8080 | |
AccessKeyId = "YOUR_ACCESS_KEY_ID" | |
SecretAccessKey = "YOUR_SECRET_ACCESS_KEY" | |
class LeoFSHandler < AWS::Core::Http::NetHttpHandler |
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
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*- | |
%%====================================================================== | |
%% | |
%% LeoFS Gateway | |
%% | |
%% Copyright (c) 2012-2013 Rekuten, 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 |
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
%% -*- 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 |
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
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*- | |
%%====================================================================== | |
%% | |
%% LeoFS Storage | |
%% | |
%% Copyright (c) 2012-2013 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 |
OlderNewer