-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix throttling #2071
base: master
Are you sure you want to change the base?
Fix throttling #2071
Conversation
otoroshi/app/next/proxy/engine.scala
Outdated
println(s"[engine] secCalls $secCalls - perIpThrottlingQuota $quota") | ||
// if (secCalls > (quota * 10L)) { | ||
if (secCalls > quota) { | ||
println("4") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
println
otoroshi/build.sbt
Outdated
//"-Dotoroshi.storage=postgresql", | ||
// "-Dotoroshi.storage=redis", | ||
// "-Dotoroshi.storage=lettuce", | ||
// "-Dotoroshi.redis.lettuce.uri=redis://localhost:6379/", | ||
s"-Dotoroshi.storage=${sys.props.getOrElse("otoroshi.storage", "file")}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we can cleanup all that testing stuff ?
otoroshi/build.sbt
Outdated
@@ -393,9 +393,8 @@ reStart / javaOptions ++= Seq( | |||
"-Dotoroshi.next.state-sync-interval=1000", | |||
// "-Dotoroshi.next.experimental.netty-server.native.driver=IOUring", | |||
// "-Dotoroshi.storage=ext:foo", | |||
"-Dotoroshi.storage=file" | |||
// "-Dotoroshi.storage=file" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should keep at least one uncommented storage ;)
No description provided.