-
SWIM: Scalable Weakly-consistent Infection-style Process Group Membership Protocol: the original paper and fairly approachable.
-
The Swim membership protocol: well written introduction to SWIM.
-
Swim overview. Talk from Armon Dadgar from HashiCorp.
WebDav put the 207 multi-status response code into the 2xx class regardless of per item errors, because for its usecase the top level response class don't matter. Also none of the error classes were a clear winner over 2xx. Even a batch with all failed items gets mapped to a success level code - but what really matters in Dav are the per item codes.
Although '207' is used as the overall response status code, the
recipient needs to consult the contents of the multistatus response
body for further information about the success or failure of the
method execution. The response MAY be used in success, partial
success and also in failure situations.
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
# find docker | |
eval "$(docker-machine env default)" | |
# bounce docker | |
docker-machine restart default | |
# blitz containers | |
docker rm $(docker ps -a -q) | |
# blitz images |
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
cd ~/projects/bin/dynamodb | |
cat > log4j2.xml <<- XML | |
<?xml version="1.0" encoding="UTF-8"?> | |
<Configuration status="fatal"> | |
<Appenders> | |
<Console name="STDOUT" target="SYSTEM_OUT"> | |
<PatternLayout pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/> | |
</Console> | |
</Appenders> |
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
git clone https://github.com/google/protobuf.git | |
cd protobuf | |
git checkout v3.0.0-alpha-3.1 | |
brew install automake | |
./autogen.sh | |
./configure | |
make | |
sudo make install |
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
package net.dehora.kafka.scala | |
import java.util.Properties | |
import kafka.producer.{KeyedMessage, Producer, ProducerConfig} | |
object KafkaTestProducer { | |
def main(args: Array[String]): Unit = { | |
val producer = createProducer() |
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
git clone https://github.com/apache/samza-hello-samza.git | |
cd samza-hello-samza | |
git checkout master | |
rm -rf deploy/* | |
bin/grid bootstrap | |
mvn clean package | |
rm -rf deploy/samza | |
tar -xvf target/hello-samza-0.8.0-dist.tar.gz -C deploy/samza | |
deploy/samza/bin/run-job.sh --config-factory=org.apache.samza.config.factories.PropertiesConfigFactory --config-path=file://$PWD/deploy/samza/config/wikipedia-feed.properties | |
deploy/samza/bin/run-job.sh --config-factory=org.apache.samza.config.factories.PropertiesConfigFactory --config-path=file://$PWD/deploy/samza/config/wikipedia-parser.properties |
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
package io.intercom.api.secure; | |
import org.apache.commons.codec.binary.Hex; | |
import javax.crypto.Mac; | |
import javax.crypto.spec.SecretKeySpec; | |
import java.security.InvalidKeyException; | |
import java.security.NoSuchAlgorithmException; | |
import java.util.Base64; |
java -XX:+PrintFlagsFinal -version
[Global flags]
uintx AdaptiveSizeDecrementScaleFactor = 4 {product}
uintx AdaptiveSizeMajorGCDecayTimeScale = 10 {product}
uintx AdaptiveSizePausePolicy = 0 {product}
uintx AdaptiveSizePolicyCollectionCostMargin = 50 {product}
uintx AdaptiveSizePolicyInitializingSteps = 20 {product}
uintx AdaptiveSizePolicyOutputInterval = 0 {product}
uintx AdaptiveSizePolicyWeight = 10 {product}
java -XX:+PrintFlagsFinal -version