負荷低すぎはもはや障害じゃないのかという記事の話。
そうすると、 『イベントで一時的にc4.4xlarge(8万/月)にして、そのまま最大CPU使用率10%とかで数ヶ月放置されている』 みたいなのはビジネス的な損失という意味で明らかに障害で、監視すべきじゃないだろうか?
とのこと。
| <?PHP | |
| class F { | |
| public static function curry($f) { | |
| return new F($f); | |
| } | |
| private function __construct($f, $args = []) { | |
| $this->f = $f; | |
| $this->args = $args; |
| ``` | |
| Sigdump at 2014-08-10 18:45:49 +0900 process 1977 (/usr/sbin/td-agent) | |
| Thread #<Thread:0x007f191859bf68> status=run priority=0 | |
| /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/sigdump-0.2.2/lib/sigdump.rb:38:in `dump_backtrace' | |
| /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/sigdump-0.2.2/lib/sigdump.rb:24:in `block in dump_all_thread_backtrace' | |
| /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/sigdump-0.2.2/lib/sigdump.rb:23:in `each' | |
| /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/sigdump-0.2.2/lib/sigdump.rb:23:in `dump_all_thread_backtrace' | |
| /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/sigdump-0.2.2/lib/sigdump.rb:16:in `block in dump' | |
| /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/sigdump-0.2.2/lib/sigdump.rb:107:in `open' | |
| /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/sigdump-0.2.2/lib/sigdump.rb:107:in `_open_dump_path' |
| package mse | |
| import java.io._ | |
| import org.bytedeco.javacpp.helper.opencv_core.AbstractCvMat | |
| import org.bytedeco.javacpp.opencv_core._ | |
| import org.bytedeco.javacpp.opencv_highgui._ | |
| object MSE { | |
| def main(args: Array[String]) { | |
| val ms = |
負荷低すぎはもはや障害じゃないのかという記事の話。
そうすると、 『イベントで一時的にc4.4xlarge(8万/月)にして、そのまま最大CPU使用率10%とかで数ヶ月放置されている』 みたいなのはビジネス的な損失という意味で明らかに障害で、監視すべきじゃないだろうか?
とのこと。
| import sbt._ | |
| import sbt.Keys._ | |
| import com.earldouglas.xwp.XwpPlugin._ | |
| import sbtassembly.Plugin._ | |
| import AssemblyKeys._ | |
| object BuildSettings { | |
| val buildOrganization = "jp.zucks" | |
| val buildVersion = "1.0.0-SNAPSHOT" | |
| val buildScalaVersion = "2.11.6" |
| <?php | |
| class Curry | |
| { | |
| protected $callback, $bind; | |
| protected function __construct($callback, Array $bind) | |
| { | |
| if(!is_callable($callback)) throw new InvalidArgumentException('$callback must be callable'); | |
| list($this->callback, $this->bind) = func_get_args(); | |
| } |
| <?php | |
| class Curry | |
| { | |
| protected $callback, $bind; | |
| protected function __construct($callback, Array $bind) | |
| { | |
| if(!is_callable($callback)) throw new InvalidArgumentException('$callback must be callable'); | |
| list($this->callback, $this->bind) = func_get_args(); | |
| } |
| public class HelloCarry { | |
| static <E1, E2, E3> Func<E1, Func<E2, E3>> carry(final Func2<E1, E2, E3> f2) { | |
| return new Func<E1, Func<E2,E3>>() { | |
| @Override | |
| public Func<E2, E3> apply(final E1 e1) { | |
| return new Func<E2, E3>() { | |
| @Override | |
| public E3 apply(E2 e2) { | |
| return f2.apply(e1, e2); | |
| }}; |
| package coderetreat | |
| import org.scalatest.Assertions | |
| import org.junit.Test | |
| class GameOfLifeSuite extends Assertions { | |
| @Test def game_of_life() { | |
| assert(new Board(3, 4, Set()).toString === "000,000,000,000") | |
| assert(new Board(3, 4, Set((0, 0), (0, 1), (1, 1))).toString === "110,010,000,000") |
| GOSH=/usr/local/bin/gosh | |
| L=./gu.scm | |
| test: | |
| $(GOSH) -l $(L) ./*test.scm |