A running example of the code from:
- http://marcio.io/2015/07/handling-1-million-requests-per-minute-with-golang
- http://nesv.github.io/golang/2014/02/25/worker-queues-in-go.html
Small refactorings made to original code:
A running example of the code from:
Small refactorings made to original code:
#https://play.golang.org/p/bGs5TPZksJ | |
#http://nathanleclaire.com/blog/2014/08/09/dont-get-bitten-by-pointer-vs-non-pointer-method-receivers-in-golang/ | |
import "fmt" | |
type foo struct { | |
name string | |
} | |
type bar struct { | |
f *foo |
➜ testing terraform apply -target=aws_db_subnet_group.rds_one | |
aws_vpc.main: Creating... | |
cidr_block: "" => "10.0.0.0/16" | |
default_network_acl_id: "" => "<computed>" | |
default_security_group_id: "" => "<computed>" | |
dhcp_options_id: "" => "<computed>" | |
enable_classiclink: "" => "<computed>" | |
enable_dns_hostnames: "" => "true" | |
enable_dns_support: "" => "true" | |
instance_tenancy: "" => "<computed>" |
""" | |
The MIT License (MIT) | |
Copyright (c) 2011 Numan Sachwani | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
of the Software, and to permit persons to whom the Software is furnished to do | |
so, subject to the following conditions: |
################################################################################# | |
# Import modules | |
################################################################################# | |
import os | |
import time | |
import sys | |
import socket | |
import string |
<!-- a1 (agent) --> | |
<configuration> | |
<property> | |
<name>flume.master.servers</name> | |
<value>$master_IP</value> | |
<description>This is the address for the config servers status server (http)</description> | |
</property> | |
<property> | |
<name>flume.collector.event.host</name> |