# ./vdbench -f examples/filesys/random_rw
Vdbench distribution: vdbench50402
For documentation, see 'vdbench.pdf'.
17:05:39.642 input argument scanned: '-fexamples/filesys/random_rw'
17:05:39.694 anchor=/dir1: there will be 1 directories and a maximum of 1000 files under this anchor.
17:05:39.694 Estimated maximum size for this anchor: 125m
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
<source> | |
type tail | |
# format /(?<time>[\w]+\s+[\d]+\s[\d:]+)\s+(?<host>[\w]+)\s+(?<process>[\w\/]+)\[(?<pid>[\d]+)\]\:\s(?<queue_id>[\w]{11}):\s(?<data>.+)/ | |
format /(?<time>[\w]+\s+[\d]+\s[\d:]+)\s+(?<data>.+)/ | |
time_format %b %d %H:%M:%S | |
path /var/log/mail.log | |
pos_file /opt/fluentd/tmp/mail.log.pos2 | |
tag raw.postfix.result | |
</source> |
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
<source> | |
type tail | |
format /(?<c_ip>[\w\.]+):(?<c_port>\d+) \[(?<a_date>.+)\] (?<f_end>[\w-]+) (?<b_end>[\w-]+)\/(?<b_server>[\w-]+) (?<tw>\d+)\/(?<tc>\d | |
+)\/(?<tt>\d+) (?<bytes>\d+) (?<t_state>[\w-]+) (?<actconn>\d+)\/(?<feconn>\d+)\/(?<beconn>\d+)\/(?<srv_conn>\d+)\/(?<retries>\d+) (?< | |
srv_queue>\d+)\/(?<backend_queue>\d+)/ | |
time_format %d/%B/%Y:%H:%M:%S | |
path /var/log/haproxy/haproxy_access.log | |
pos_file /opt/fluentd/var/pos/haproxy_access.pos | |
tag haproxy.access | |
</source> |
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
#!/usr/bin/env ruby | |
# -*- coding:utf-8 -*- | |
require 'socket' | |
require 'openssl' | |
require 'timeout' | |
require 'pp' | |
include OpenSSL | |
timeout=15 |
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
global | |
daemon | |
user haproxy | |
group haproxy | |
log /dev/log daemon info | |
maxconn 4096 | |
defaults | |
log global | |
option dontlognull |
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
# -- snip -- | |
config.vm.define machine do |config| | |
config.vm.provider :virtualbox do |vb| | |
at_disk = 'tmp/name_of_file.vdi' | |
unless File.exists?(at_disk) | |
vb.customize ['createhd', '--filename', at_disk, '--size', 5 * 1024] | |
end | |
vb.customize ['storageattach', :id, '--storagectl', 'IDE Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', at_disk] | |
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
prompt = function() { | |
// set version | |
version = db.version(); | |
// case mongos | |
if (rs.status().info == 'mongos') { | |
return rs.status().info + ':[' + version + '] > '; | |
} | |
// config or replica |
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 'sinatra' | |
require 'sinatra_auth_github' | |
set :public_folder, File.dirname(__FILE__) + '/build/html' | |
use Rack::Session::Cookie, | |
:secret => Digest::SHA1.hexdigest(rand.to_s), | |
:expire_after => 3600 | |
set :github_options, { | |
:scopes => "user", |
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
diff --git a/config/action.d/ipfilter.conf b/config/action.d/ipfilter.conf | |
index 61420e3..091c92d 100644 | |
--- a/config/action.d/ipfilter.conf | |
+++ b/config/action.d/ipfilter.conf | |
@@ -13,14 +13,14 @@ | |
# Values: CMD | |
# | |
# enable IPF if not already enabled | |
-actionstart = /sbin/ipf -E | |
+actionstart = /usr/sbin/ipf -E |
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 'settingslogic' | |
class EnvSettings < Settingslogic | |
source File.expand_path('../config.yml', __FILE__) | |
end | |
if File.exist?(File.expand_path('../config.local.yml', __FILE__)) | |
class EnvLocalSettings < Settingslogic | |
source File.expand_path('../config.local.yml', __FILE__) | |
end |
NewerOlder