HNHacker News
TopNewBestAskShowJobs

chucky_z

1,215 karma · joined June 16, 2015

[ my public key: https://keybase.io/chuckyz; my proof: https://keybase.io/chuckyz/sigs/TE7_P8BlEovO4suPMF-Ul1FrCWsehSIgTOp-NxZbW9g ]
submissionscomments
chucky_z··on Ansible open-sources Ansible Tower with AWX
If you're always using `become_user: root` in your playbooks, maybe think about writing them differently! I have experience with Tower, and have never configured users to have any level of access beyond very, very basic SSH access.
chucky_z··on Ansible open-sources Ansible Tower with AWX
I ended up throwing our AWS credentials right into the dynamic inventory script itself. It sounds janky but I mean... it worked.

You _should_ be able to pass in a vault password as well, as part of any job? Are you doing something with vault in your inventory?

chucky_z··on A Google employee lives in a truck and saves 90% of his income (2015)
I would add that they are incredibly lucky as well. If given the choice I would live like this. I do not have that choice.
chucky_z··on Docker operations slowing down on AWS
A 1TB gp2 volume is cheaper than an 1TB, 3000 iops io2 volume, and provides nearly-identical characters.

Only use io2 if you have a latency sensitive application or need more than 10,000 iops. Even then you can RAID10 some gp2 volumes together and with enhanced networking get I believe 30k iops out of one instance.

chucky_z··on Docker 0-Day Stopped Cold by SELinux
I installed Fedora Server 25 a week or so ago on a small server, sshd was open (with an extremely strong random password) and fully functional at install time. SELinux has caused no issues, I actually chose to install docker in the installer at install-time and it came pre-configured to play nice with SELinux.

Firewalld on the other hand, I'm still figuring out (firewall-cmd is useful, but trying to translate iptables rules -> firewalld is proving harder than I expected)

chucky_z··on Why HTTPS for Everything?
I mean... yeah, actually, you can -- if you had every (new) part from, say, a 1967 Ford F-series truck, anyone could absolutely, with just a Chiltons and a good set of tools, put together every nut, bolt, and screw from a giant crate of parts to build it.
chucky_z··on RocksDB: A Persistent Key-Value Store for Flash and RAM Storage
https://github.com/cockroachdb/cockroach

CockroachDB heavily utilizes RocksDB.

chucky_z··on Diamonds Suck (2006)
Try the second-hand market, and buy the stone you like, and the ring you like (sperate). It's extremely in-expensive (usually included in the cost of the ring if you buy it at a store) to have your stone set into the ring of your choice.

I spent a total of $500 to have a .75ct diamond set in a ring this way.

chucky_z··on Tower – The most powerful Git client for Mac and Windows
Yeah, Tower is legitimately the best GUI client I've ever used for Git, period.

I try to live on the CLI though so I've kinda forced myself to learn more about Git and the myriad of commands, but Tower was most certainly the best set of training wheels I could ask for.

chucky_z··on Infrastructure discovery with etcd
To add to this, I run `consul join` against all instances tagged as consul servers with the output of the instance list, on boot, using cloud-init's "per-boot" script area.
chucky_z··on Infrastructure discovery with etcd
This was actually an issue in previous versions, in (I believe 0.7) after a timeout (reconnect_timeout and reconnect_timeout_wan in options) a node will be completely removed.
chucky_z··on Bedrock – Rock-solid distributed data
Automatic failover -- https://dev.mysql.com/doc/mysql-utilities/1.5/en/mysqlfailov...

Guides to doing auto failover and recovery:

https://dev.mysql.com/doc/mysql-utilities/1.5/en/utils-task-...

https://dev.mysql.com/doc/mysql-utilities/1.5/en/utils-task-...

chucky_z··on Dropping Linux capabilities to improve container security
so I think a better explanation is 'you should only run one command per container.'

Sometimes that involves using one container that you tightly control to do a bunch of different things -- e.g.: "fedora".

You may use a base (fully loaded) fedora container to run apache in one container, (fedora:httpd), mysql in another (fedora:mysql), and something like tomcat (fedora:tomcat).

The alternative, preferred in some (most?) instances, is to use something like Alpine and bake in the bare minimum of everything for every process.

When folks run a bunch of stuff in one container it's typically using something like circus or supervisord running at pid 1.

chucky_z··on Disney Open Source
How tied to Disney is munki and reposado? I use the Server app, but the functionality is continually hamstrung and honestly these open-source apps probably have more functionality than was ever in Server.

It's really interesting to hear that they could be tied so closely to Disney though.

chucky_z··on Google's “Director of Engineering” Hiring Test
Gwan's performance is the real deal. It's also the least stable piece of software I have ever used in my entire life.

That last sentence is important.

chucky_z··on Unikernels: Rise of the Library Hypervisor
Is this a presentation on a unikernel that can run docker (MirageOS/Hyperkit)?

Interesting, I was looking into running single daemons (e.g.: nginx) as a unikernel (through rump kernels). This is certainly something different!

Edit: doing some research it simply seems that Hyperkit/MirageOS are supplementing docker (via Alpine Linux). I may still be missing something just by looking at the slides.

chucky_z··on Window Functions in SQL (2013)
Doing some research looks like they're not that close. =(

https://jira.mariadb.org/browse/MDEV-6115

chucky_z··on Ask HN: Alternatives to AWS?
We dumped Rackspace for AWS. I tried desperately to get them to do anything for us about their cloud as we had dedicated servers and needed to grow a bit. I was able to order a huge dedicated server at an OK price, but FFS it took eight weeks to be available for use.

I asked a ton of times about their cloud stuff and just got re-directed back to dedicated servers. I got tired of it, went to AWS, and haven't looked back. Using reserved instances and scaling groups we're paying about 10% less per month for 8x the number of servers, and slightly more cpu/memory/disk overall (we had some pretty beefy stuff at Rackspace).

chucky_z··on When Nintendo got rid of the headphone jack
I distinctly remember this at the time. I just played all my games with no sound, a mild frustration at best as it was the only real option as a kid if you wanted to play games at night without goofy adapters for your GBA!

It's more akin to the iPhone 1 not including a jack then adding one later than the iPhone 7 removing it.

Another note: Original Gameboy games stuck way out the back. The GBA SP sure made a lot of sacrifices, and odd design choices but the fact that it fixed the biggest issue means a lot for it.

chucky_z··on Twitter: A Clusterfuck of UI Mistakes
Maybe I'm the reverse case, but I really, really like Twitter's UI. Especially their newly redone mobile UI.

While Facebook is now completely unusable on my phone, and Reddit is very close (an example of too-much-JS-gone-wrong), going on Twitter is a blast of minty fresh air at my fingertips.

chucky_z··on Kimchi: HTML5 management interface for KVM
I believe it's related in some way, but I cannot for the life of me find the direct connection. I can tell you that kimchi developer contacts all use @ovirt.org emails and mailing lists.

https://github.com/kimchi-project/kimchi/wiki/Communications

chucky_z··on Things I Hate About PostgreSQL (2013)
Really? Coming from PGSQL to a MySQL-only shop made me really miss PGSQL's performance. Sure, MySQL is faster on `select pk from tbl where pk=1`, but the second you get into complicated joins, including subqueries, or doing any analytics the performance is very random.

With pgsql, I can get a clear concise explain and if I disagree with what's happening (because I know exactly what my hardware is capable of) I can tune any query to be decently performant.

With mysql, you get... I mean explain is ok, but I wouldn't put it above that. "EXPLAIN ANALYZE" is my gold standard forever and ever. I even liked it more than SQL Server's equivalent; which is also fantastic.

chucky_z··on OpenBSD on HP Stream 7
Ahhh... I don't know enough about *BSD, I was really craving more details from this article. "Mind the device name!" (Why?) "USB keyboards don’t work with the in kernel configurator, but we can save changes using config -ef on another machine to disable acpibat." (Like, over ssh, onto the usb, how?)

Still cool that OpenBSD runs on one of those little tablets though!

chucky_z··on Dolphin Progress Report: August 2016
This is one of the few emulators that will run _well_ below the suggest specifications. I've played it on much older hardware with a very low end GPU, and it runs quite well (depending on the game, of course.)
chucky_z··on Context aware MySQL pools via HAProxy
What are the pros/cons of doing this in HAProxy natively?

Could you just use something like a health-check on a cluster system like zookeeper/etcd/consul/keepalived/... to simply peek at the lag time, and then mark a replica as unhealthy and regenerate your HAProxy config?

Just curious as I have very little experience with HAProxy. I do everything with consul right now and it works very well (previously I used keepalived + vrrp, or pacemaker/corosync but no multicast "in the cloud.").

chucky_z··on Cisco to lay off about 14,000 employees
Interesting. I live in the south bay right next to the Cisco campus, and the amount of new employees they are hiring is staggering. I wonder how many of the 14,000 are being rehired as a contractor or something?
chucky_z··on NoSQL Databases: A Survey and Decision Guidance
At a previous company I worked I worked at there was a table that maxed out postgresql's column limit. That did not need to be that wide. It was much better suited as a ~30 column table with a single hstore column (does the key exist? return the value, otherwise? null), as 99% of each of the rows for those columns were completely empty, and PGSQL does not support sparse tables (the "right" solution here).
chucky_z··on Terraform 0.7 released
Yes, I've used Terraform since 0.3.

I feel strongly about two things:

1) I screwed up at the beginning so hard (there were _no_ best practices to be found so it was a bit wild west) that I've come to the point where I need to use something else, or rewrite everything.

2) Terraform is best when you are in a silo by yourself, or you're using something to do the state applies for you (Atlas, or DIY through Jenkins and friends).

It does a lot right that other tools don't do (stringing together resources is a cinch), but it also behaves in strange things and the statefile is both a huge positive, and a huge negative.

If you need to move fast it's not a bad tool to choose at all.

The BIG caveat here is as follows -- If you have a mixed-cloud setup and use AWS, GCE, Azure, DigitalOcean, etc.. at the same time; It's probably hands down the best tool for managing everything.

Notes:

- I only use AWS. I use some of the other TF providers mixed in with it. (Consul, Datadog)

- I started from scratch (no AWS resources -> 100% Terraform), the general opinion seems to be this is the better place to start from.

- I use a majority of Hashicorp's stuff and am quite partial to liking their products. Terraform is something I have the most opinions on. I have no problems strongly suggesting Packer, Consul, Vagrant, and Vault to anyone.

- One of the main reasons I'm considering alternatives is that, at my current position, I'm having trouble getting folks to wrap their heads around Terraform.

chucky_z··on Why don't companies use FreeBSD as much in production as Linux?
> the response will probably be silence (rarely flaming, just silence).

This is my favorite part of the Linux community. Ask something that you aren't sure of, and if it's wrong, you'll get quite some volume of responses correcting you!

chucky_z··on We Should Not Accept Scientific Results That Have Not Been Repeated
In for instance, a bioscience lab, I don't believe that results should even be accepted unless they're repeated with similar reagents. Some reagents are so specific they only prove something.... for that one single thing, which could be unique on this planet.
← PreviousPage 13 of 16Next →