HNHacker News
TopNewBestAskShowJobs

AaronBBrown

330 karma · joined May 4, 2012

submissionscomments
AaronBBrown··on AWS Tips I Wish I'd Known Before I Started
That's a great accomplishment in such a short period of time. I'm glad that you were able to save time and money by using another service. Thankfully, there are tons of options out there to suit every business' use cases.
AaronBBrown··on AWS Tips I Wish I'd Known Before I Started
Reserved Instances really drive the cost down quite a bit, but yes, it's expensive.
AaronBBrown··on AWS Tips I Wish I'd Known Before I Started
A bunch of Chef cookbooks does not AWS make. Configuration management tools are of course a necessity in AWS but do not replace their offerings.

I'm very impressed that you were able to build in 3 weeks time a low-latency multi-data center application with master/slave database failover, robust fault tolerant load balancing, and backups that can be restored in minutes with an API to control all of those services. That would normally take a senior team of engineers several months to accomplish and have it be of the quality and reliability of the services provided by AWS.

More likely is that you had a use case or a mindset that did not suit AWS very well and was easy to implement on your own. That's awesome and I'm glad you were able to find better value elsewhere. AWS is not for everyone, and is definitely quite expensive on the pocketbook.

AaronBBrown··on AWS Tips I Wish I'd Known Before I Started
Can you list some of those tools and provide an estimate of how long they take to configure and how much day-to-day support they require?
AaronBBrown··on AWS Tips I Wish I'd Known Before I Started
DO, Linode, and Rackspace have lower bottom line costs, but a (much) smaller feature set which means more operational work. Especially when kicking things off, developer and operational time is often far more valuable than the cost of the servers.
AaronBBrown··on AWS Tips I Wish I'd Known Before I Started
DO has a very limited API, no ability to add additional storage without resizing your droplets, and has no firewall protection without iptables being enabled. DO has its uses (I'm migrating my personal server there presently), but it's not even close to being in the same market/caliber as EC2.

For some businesses, the huge AWS feature set (RDS, EBS, ELB, security groups, VPC, ELB, EIPs, etc, etc, etc) is more valuable than the bottom $$ line. For others, those features aren't worth the added cost, but hand-wavey "just use DO" or "Just rent physical servers from SoftLayer/Rackspace" is disingenous.

TL;DR AWS has value above and beyond simply hour-to-hour elasticity.

AaronBBrown··on AWS Tips I Wish I'd Known Before I Started
As someone who has worked w/ AWS (and Rackspace) for several years with multiple startups...

Unless they have dramatically improved their offering in the last couple years, an hour or two from "I need a new server" to delivery is 1) not an accurate timeframe for physical servers from Rackspace and 2) even if it was realistic, that's an eternity when you are trying to iterate quickly. I can have a new server in 30 seconds with AWS and in the course of an hour could have tested my automation tools half a dozen times or more vs reimaging a server over and over again.

I'm not saying it's always the right choice or that it's cheaper, but that flexibility combined with some of the pre-canned tools (ELB, RDS, CloudWatch, SQS, SNS) has tremendous value even when you aren't autoscaling.

AaronBBrown··on ActorDB: A distributed SQL database with the scalability of a KV store
Works for me. I use this feature nearly all day.

http://showterm.io/03de0c8a4992dc7008ef2

AaronBBrown··on AWS Tips I Wish I'd Known Before I Started
AWS makes a lot of sense in a 24/7 environment, particularly when you are a new startup and don't have enough information (or capital!) to make educated server purchases.
AaronBBrown··on ActorDB: A distributed SQL database with the scalability of a KV store
Can you give an example of where mysql (the client) is terrible compared to psql (the client)? I've had the opposite experience.
AaronBBrown··on The Only Interview Question That Matters
For reference, I live in a small town along the Hudson River on the edge of the Adirondack Mountains in upstate NY, but have worked for Boston and NYC startups for some time now. So, not living near a top 5 city doesn't really have any bearing on the conversation.

I agree that long-term contract-to-hire is a reasonable way to go for may employers and employees, particularly folks that already are already contractors, but the premise of "you've got a couple weeks to prove yourself" is a non-starter. I'm not going to quit my day job and risk my family's financial security for a company that is unwilling to take a similar risk on me. In an ideal world, it is the best way to evaluate a candidate. However, if it were practical, it would have already become an industry practice. The fact that it seems to be rare indicates to me that it does not work very well.

As a Systems Engineer, a practice that I would like to see more of (and may try to implement at the company I work for) is a brief troubleshooting exercise with a shared tmux session. Set up a server with some problem and ask the candidate to identify the issue and try to resolve it.

AaronBBrown··on The Only Interview Question That Matters
I read this a lot here about probationary or trial periods and I agree that it's a great idea, in principle. However, the reality of the developer and system engineer ecosystem right now is that it's an employee's market. Good people are already employed and probably get a couple job leads every day via professional contacts, LinkedIn, or other channels. Those people aren't going to be willing to jump through these kinds of hoops, quit their day job, or generally want to deal with putting this much effort into an uncertain outcome when there are so many lower friction and equally rewarding positions. I realize that I'm generalizing and that you may be able to come up with a few anecdotes to make your point, but no one I know would deal with this. This might be a great way of hiring college interns or people trying to break into the technology field, but not practical for hiring established or senior positions.

I like your idea about contributing to some open source project (paid), though even in that case, you will likely run into qualified people who are unwilling (or legally unable) to do this and as an interviewer, you need to be careful not to exclude those individuals.

AaronBBrown··on Building an open source Nest
EcoBee thermostats give you the ability to set your fan to always on via the thermostat, API, and web interface.
AaronBBrown··on Vagrant 1.4
A shell script that can spin up VirtualBox images and run puppet to provision them isn't very difficult to make

Ok. Let's see the code to do that.

AaronBBrown··on Vagrant 1.4
I use Vagrant daily. Here's an example I was working on today.

I needed to spin up 5 servers, a load balancer and 2 groups of 2 backend servers. I needed to provision them with Chef, have full name resolution, and be able to access the servers from my host machine.

Here's my Vagrantfile

    Vagrant.require_plugin "vagrant-chef-zero"
    Vagrant.require_plugin "vagrant-berkshelf"
    Vagrant.require_plugin "landrush"

    last_ip_octet = 10
    DOMAIN = "vagrant.dev"

    Vagrant.configure("2") do |config|
      config.landrush.enable
      config.chef_zero.chef_repo_path = "./"
      config.omnibus.chef_version = '11.8.0'
      config.vm.box = "opscode_ubuntu-12.04_provisionerless"
      config.vm.box_url = "https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box"

      %w{default metrics}.each do |backend|
        (1..2).each do |i|
          config.vm.define "be_#{backend}_#{i}".to_sym do |cfg|
            last_ip_octet += 1
            cfg.vm.hostname = "be-#{backend}-#{i}.#{DOMAIN}"
            cfg.vm.network :private_network, :ip => "192.168.33."+last_ip_octet.to_s
            cfg.vm.provision :chef_client do |chef|
              chef.node_name = "be-#{backend}-#{i}"
              chef.add_role "backend_#{backend}"
            end
          end
        end
      end

      config.vm.provision :shell, :inline => "/usr/bin/apt-get update --fix-missing"
      config.vm.define :lb do |cfg|
        last_ip_octet += 1
        lb_ip = "192.168.33."+last_ip_octet.to_s

        cfg.vm.hostname = "lb.#{DOMAIN}"
        cfg.vm.network :private_network, :ip => lb_ip
        cfg.vm.provision :chef_client do |chef|
          chef.node_name = "lb"
          chef.add_role "lb"
        end
      end
    end
This utilizes a few vagrant plugins, vagrant-chef-zero, vagrant-berkshelf, and landrush which are one liners each to install. After that, I can type

    vagrant up  # build my stack from scratch
    vagrant destroy # destroy my stack
    vagrant ssh lb # ssh into the lb instance
    vagrant provision # execute chef (puppet, ansible, bash, etc)
Can you show me equivalent code that fulfills all my requirements using VirtualBox directly and will allow me to change a couple lines to spin this same infrastructure up in AWS or using VMWare?
AaronBBrown··on Amazon RDS for PostgreSQL
What has it won?
AaronBBrown··on MySQL is to SQL like MongoDB to NoSQL
InnoDB, not MyISAM, has been the default storage engine since 5.5 which was released nearly 3 years ago.
AaronBBrown··on Is a Nest worth the money?
He's confusing kilowatts with kilowatt hours? They mean very different things. kW is a rate (kilojoules/sec) of usage (power). kWh a stackable amount (in the sense that you can stack money) of energy and is what the electric company charges you for. A basic mistake like this makes me question the validity of the results.

I'm in the market for 3 new thermostats and was hoping this article would help me with my decision. Presently, I'm leaning toward an Ecobees (https://www.ecobee.com/) thermostat which has a lot more features than the Nest and even has an API. It seems to be the Android of the thermostat world where Nest is the iPhone. Features vs polish.

AaronBBrown··on Everything you wanted to know about SQL injection (but were afraid to ask)
And of course, the highly relevant classic XKCD: http://xkcd.com/327/
AaronBBrown··on Ruby 2.0 is now supported in the OS X window manager for hackers, Zephyros
How does this compare to slate from a features standpoint?
AaronBBrown··on Hosting git repositories on your VPS
Yeah, the reality is it's about 3 additional commands to get going (over any other normal volume)...and a very short chef cookbook to automate it.

    # create a key file
    dd if=/dev/urandom of=/etc/mykeyfile.key bs=512 count=1
    # create the luks container
    cryptsetup luksFormat /dev/sdf1 /etc/mykeyfile.key
    # open the luks container
    cryptsetup luksOpen /dev/sdf1 myluksvolume --key-file /etc/mykeyfile.key
    # format the volume
    mkfs.xfs /dev/mapper/myluksvolume
    # mount the disk
    mount /dev/mapper/myluksvolume /mnt/mymountpoint
AaronBBrown··on Ansible Simply Kicks Ass
I'm very curious about the breakdown of developers versus operations people who are in the middle of this love affair with Ansible.
AaronBBrown··on Hosting git repositories on your VPS
LUKS/dm-crypt. Super easy to use. https://wiki.archlinux.org/index.php/Dm-crypt_with_LUKS
AaronBBrown··on An open MySQL bug receives a real Birthday cake
While I agree it has potential to be annoying in some environments, it's also trivially simple to work around.

    for tbl in $(mysql -BNe "SELECT DISTINCT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE EXTRA = 'auto_increment' AND TABLE_SCHEMA = 'mydb'"); do
      mysql -e "ALTER TABLE ${tbl} AUTO_INCREMENT=1" mydb
    done
Run that just after importing your new schema.

Note: That code will require a bit of modification if you make the mistake of having spaces in your table name.

AaronBBrown··on Salt: Like Puppet, Except It Doesn’t Suck
This article makes a claim (...Puppet...Suck(s)), but does not take even attempt to explain what it is that sucks.

What, specifically, "sucks" about Puppet and Chef and what is so much "simpler" about Salt or Ansible? As an Ops guy who has been running Puppet since 2008 (and Chef most recently) against hundred of servers, I don't see the simplicity reflected in the documentation, nor do I find Puppet or Chef particularly complicated.

(Ok, Chef's attributes system is a bit confusing at first, but it is hugely powerful.)

AaronBBrown··on Salt: Like Puppet, Except It Doesn’t Suck
Try https://rvm.io if you're having difficulty getting Ruby somewhere.
AaronBBrown··on Building a Raspberry Pi based server powered 100% by solar energy
I've been wanting to hack on a few projects that involve small amounts of electrical knowledge, but am not sure where to get the bare minimum information to avoid killing myself or others. What is the best way to get practical background knowledge about this type of electrical project?
AaronBBrown··on Building a Raspberry Pi based server powered 100% by solar energy
Round Robin Database.
AaronBBrown··on Surviving under water in an air bubble
To be fair, the lungs compressible and more like a balloon than a bowl of water.

I can assure you, you can exhale upon ascent when inverted. (source: me, who used to log plenty of hours below 150fsw breathing mixed gasses).

AaronBBrown··on Surviving under water in an air bubble
While it is highly unlikely that a single free-dive would cause a symptomatic decompression injury, there is a high incidence of decompression-related injuries amongst free-diving fisherman due to repetitive and deep free-diving. The probability of decompression sickness occurring is related to time and depth.

Here's a link that provides a number of references: http://www.thediveforum.com/dive-medicine/3706-long-term-phy...

← PreviousPage 2 of 5Next →