I hereby claim:
- I am freeformz on github.
- I am freeformz (https://keybase.io/freeformz) on keybase.
- I have a public key whose fingerprint is 292C 3D77 FD92 E8D3 BE9A 05DB 2655 864C 95DB 0B89
To claim this, I am signing this object:
[04/29/14 18:55:05] [INFO] Loading configuration file ./config.toml | |
[04/29/14 18:55:05] [INFO] Redirectoring logging to stdout | |
[04/29/14 18:55:05] [INFO] Starting Influx Server bound to 0.0.0.0 ... | |
[04/29/14 18:55:05] [INFO] | |
+---------------------------------------------+ | |
| _____ __ _ _____ ____ | | |
| |_ _| / _| | | __ \| _ \ | | |
| | | _ __ | |_| |_ ___ _| | | | |_) | | | |
| | | | '_ \| _| | | | \ \/ / | | | _ < | | |
| _| |_| | | | | | | |_| |> <| |__| | |_) | | |
From this: | |
BenchmarkLogplexLineFormatter 5000000 3826 ns/op 1072 B/op 16 allocs/op | |
To this: | |
BenchmarkLogplexLineFormatter 10000000 2020 ns/op 833 B/op 6 allocs/op |
Paska Bread | |
http://easteuropeanfood.about.com/od/slovakbreads/r/easter-bread-paska.htm | |
Egg Cheese | |
https://www.google.com/search?q=hrudka&oq=hrudka&aqs=chrome..69i57j0l5.258j0j7&sourceid=chrome&espv=210&es_sm=91&ie=UTF-8 | |
http://easteuropeanfood.about.com/od/slovakeastertraditions/r/Slovak-Egg-Cheese-Recipe-For-Easter-Hrudka.htm | |
http://allrecipes.com/recipe/sirecz-easter-cheese/ |
I hereby claim:
To claim this, I am signing this object:
The application is producing logs faster than the local delivery process (log-shuttle) can deliver them to Logplex and has discarded some log lines in order to keep up. If this error is sustained you will need to reduce the logging volume of your application.
2013-11-04T21:31:32.125756+00:00 app[log-shuttle]: Error L12: 222 messages dropped since 2013-11-04T21:31:32.125756+00:00.
// Problem... | |
// I want to do bulk processing against a paginated API | |
// Spawning a go routine per page DOS's the site, so I need throttling | |
// Instead send the offsets to a channel and spawn a number of workers | |
// to process the pages | |
// | |
// I can't just use 2 channels, because I want to easily consume | |
// the output and signal done with close(output) and double closing | |
// a channel causes a panic. I also don't know how many responses I'm | |
// going to get out, so I can't consume a fixed amount. |
Which one is likely to be more efficient / fast when the counter could likely increment quickly in another go routine? BenchmarkCounterThing
or BenchmarkAtomic
?
package main
import (
"testing"
"sync"
"sync/atomic"
"time"
module Fog | |
module Parsers | |
module DNS | |
module AWS | |
class GetHostedZone < Fog::Parsers::Base | |
def reset | |
@hosted_zone = {} | |
@name_servers = [] |
resolvers.map do |resolver| | |
Thread.new do | |
Thread::current[:address] = resolve_address(hostname, resolver) | |
end | |
end.each(&:join).map {|thread| thread[:address] }.uniq |