config

package
v0.0.0-...-8f6afdc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const AttackHTTPClientContextKey = "dns-attack-http-realip"
View Source
const BaseAt = 1700874000

2024-04-01 01:00:00 NOTE: 2024-04-01 00:00:00 ~ 2024-04-01 01:00:00は初期データで予約済み

View Source
const BaseDomain = "u.isucon.dev"
View Source
const BaseParallelism = 1

基本となる並列性 セマフォの重みに使われます

View Source
const ChangableParallelism = 100

動的に並列度を上げる並列性 スコアに直結する視聴者シナリオなどのセマフォの重みに使われます

View Source
const ClientIdleConnTimeout = 5 * time.Second

暇になってる接続のタイムアウト NOTE: これを設定しないと、keepaliveで繋ぎっぱなしの接続が増え、Nginxでworker_connectionが不十分だというエラーログが出るようになる

View Source
const DefaultAgentTimeout = 20 * time.Second

HTTPクライアント(isucandar/agent) のタイムアウト

View Source
const DefaultBenchmarkTimeout = 60 * time.Second

ベンチマーク走行時間タイムアウト

View Source
const FinalcheckTimeout = 10 * time.Second
View Source
const InitialNgWords = 14337
View Source
const InitialReactionCount = 1001
View Source
const InitializeAgentTimeout = 42 * time.Second

POST /api/initialize 時のタイムアウト

View Source
const LongHourThreshold = 10

この時間[h]を超えた配信枠は長時間配信とみなす

View Source
const NumHours = (24 * 365) - 1

NOTE: 初期データ予約済みの1時間分を引く必要がある

View Source
const NumMustTryLogins = 10

この数値だけは、最初のRegister, Login処理が保証されます NOTE: このような保証がないと、登録が一切できず、ベンチ走行までシナリオが全く実行されないケースが出てしまいます

View Source
const NumSearchLivestreams = 50

SearchLivestreamsのLIMITのデフォルト

View Source
const NumSlots = 5

同時配信枠数 NOTE: ベンチマーカー調整項目

View Source
const PretestTimeout = 20 * time.Second
View Source
const TooManySpamThresholdPercentage = 30.0

スパム離脱割合

Variables

View Source
var (
	HTTPScheme         = "http"
	InsecureSkipVerify = true
)

NOTE: --enable-ssl オプションによって変更されます

View Source
var (
	TargetBaseURL    string   = fmt.Sprintf("%s://pipe.%s:%d", HTTPScheme, BaseDomain, TargetPort)
	TargetNameserver string   = "127.0.0.1"
	TargetWebapps    []string = []string{}
	DNSPort          int      = 1053
	TargetPort       int      = 8080
)
View Source
var ContestantLogPath string = "/tmp/staff.log"
View Source
var DefaultDNSRecord = []string{}/* 275 elements not displayed */
View Source
var FinalcheckPath string = "/tmp/finalcheck.json"
View Source
var Language string = "unknown"
View Source
var ResultPath string = "/tmp/contestant.log"
View Source
var StaffLogPath string = "/tmp/result.json"

NOTE: ベンチマーカー実行ログを当該パスに書き出す

supervisorがそれを拾い、ポータルにPOSTする

Functions

func IsWebappIP

func IsWebappIP(ip net.IP) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL