-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/fix webapp bottlenecks3 (#133)
* クライアントの人気判定, シナリオ整理 * 予約枠テーブル * hostヘッダではなくURLパラメータから取る * docker-compose分割 * スパム判定修正 * NGワードにマッチする過去投稿を削除するように
- Loading branch information
Showing
31 changed files
with
9,164 additions
and
240 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
package config | ||
|
||
// NOTE: ベンチマーカー実行ログを当該パスに書き出す | ||
// | ||
// supervisorがそれを拾い、ポータルにPOSTする | ||
var LogPath string |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package config | ||
|
||
// 2024-04-01 01:00:00 | ||
// NOTE: 2024-04-01 00:00:00 ~ 2024-04-01 01:00:00は初期データで予約済み | ||
const BaseAt = 1711900800 | ||
|
||
// 同時配信枠数 | ||
// NOTE: ベンチマーカー調整項目 | ||
const NumSlots = 2 | ||
|
||
// NOTE: 初期データ予約済みの1時間分を引く必要がある | ||
const NumHours = (24 * 365) - 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
package config | ||
|
||
// FIXME: workerの実装がまだなのでSlack通知なにもしてない. 11月前半のつなぎ込みで発砲試験する | ||
var SlackWebhookURL string |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
package config | ||
|
||
import "fmt" | ||
import ( | ||
"fmt" | ||
"time" | ||
) | ||
|
||
const ( | ||
TargetPort = 8080 | ||
) | ||
|
||
// FIXME: httpsになりそうなので、スキームも置き換えられるようにする | ||
var ( | ||
TargetBaseURL string = fmt.Sprintf("http://pipe.u.isucon.dev:%d", TargetPort) | ||
TargetNameserver string = "127.0.0.1" | ||
DNSPort int = 1053 | ||
) | ||
|
||
var RequestTooSlowThreshold = 500 * time.Millisecond |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
package scenario | ||
|
||
func DnsWaterTortureAttackScenario() error { | ||
// FIXME: internal/attackerパッケージを用いて実装 | ||
return nil | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.