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 python | |
import random | |
from math import sqrt, log, pow | |
DEBUG = True | |
NPGS = 100000 # num PGs | |
R = 3 # num replicas | |
if NPGS > 3: |
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
Num PGs: 100000 | |
Num Replicas: 3 | |
OSDs (id: weight): {0: 3.0, 1: 3.0, 2: 3.0, 3: 1.0} | |
Expected: {0: 90000.0, 1: 90000.0, 2: 90000.0, 3: 30000.0} | |
Replica 0: [30000.0, 30000.0, 30000.0, 10000.0] | |
Replica 1: [30000.0, 30000.0, 30000.0, 10000.0] | |
Replica 2: [30000.0, 30000.0, 30000.0, 10000.0] | |
Simulating with existing CRUSH |
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 python | |
import random | |
from math import sqrt, log, pow | |
DEBUG = True | |
NPGS = 100000 # num PGs | |
R = 3 # num replicas | |
if NPGS > 3: |
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
Num PGs: 100000 | |
Num Replicas: 3 | |
OSDs (id: weight): {0: 2.0, 1: 3.0, 2: 4.0, 3: 1.0} | |
Expected: {0: 60000.0, 1: 90000.0, 2: 120000.0, 3: 30000.0} | |
Replica 0: [20000.0, 30000.0, 40000.0, 10000.0] | |
Replica 1: [20000.0, 30000.0, 40000.0, 10000.0] | |
Replica 2: [20000.0, 30000.0, 40000.0, 10000.0] | |
Simulating with existing CRUSH |
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 python | |
import random | |
from math import sqrt, log, pow | |
DEBUG = True | |
NPGS = 100000 # num PGs | |
R = 3 # num replicas | |
if NPGS > 3: |
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 python | |
import random | |
from math import sqrt, log, pow | |
DEBUG = True | |
NPGS = 100000 # num PGs | |
R = 3 # num replicas | |
if NPGS > 3: |
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
frontend cs3.cern.ch-frontend-ssl | |
bind ipv4@:443,ipv6@:443 ssl no-sslv3 crt /etc/haproxy/cert.pem verify none | |
acl ha_stats url_beg /stats | |
acl pathstyle_buckets hdr(host) -i cs3.cern.ch | |
capture request header User-Agent len 256 | |
capture request header Host len 128 | |
http-request set-var(req.bucketname) path,word(1,/) if pathstyle_buckets | |
http-request set-var(req.bucketname) hdr(host),regsub(.cs3.cern.ch,) if ! pathstyle_buckets | |
http-request set-header X-Debug-Bucket %[var(req.bucketname)] | |
timeout http-request 5m |