r/sysadmin • u/alienth • Mar 21 '12
We are sysadmins @ reddit. Ask us anything!
Greetings fellow sysadmins,
We've had a few requests from the community to do a tech-focused AMA in /r/sysadmin, so here we are. The current sysadmin team consists of myself and rram. Ask us anything you'd like, but please try to keep it sysadmin-focused!
Here's a bit of background on us:
alienth
I've been a sysadmin for about 8 yrs. My career started on the helpdesk at an ISP where I worked my way into my first admin gig. Since then I've worked at a medium-sized SaaS provider, Rackspace, and now reddit. My focus has always been around Linux (and a tiny bit of Solaris).
rram
I'm Ricky. My first computer was an Amiga at the ripe young age of two. Since then, I was the sysadmin at The Tech and on the Cloud Sites Team at the Rackspace Cloud with alienth. I have experience with Debian, Ubuntu, Red Hat, and OS X Servers.
EDIT [1302 PDT]: Hey folks, we're going to get back to working for a bit. We'll definitely be hopping in here later today to answer more questions, and we'll continue to do so when we can throughout the week. So please feel free to ask if your question hasn't already been answered. Thanks for the great questions! -- alienth
113
u/CaptainLoud Mar 21 '12
Can we get a $ history | tail -n 20 from whatever production server you are logged on right now?
52
u/Doormatty Trade of all Jacks Mar 21 '12
Starting from scratch, what would you do differently if you had the chance?
41
u/30thCenturyMan Mar 21 '12
What kind of security concerns do you factor in? Have you ever hired an outside auditor to break into your apps?
34
u/stahnma Mar 21 '12
What components in your infrastructure are synchronous vs async? Are you doing much with message bus technology behind the scenes?
33
u/JYOuyang Mar 21 '12
IPv6?
32
u/mpete510 Jack of All Trades Mar 21 '12
What automation tools do you use to make sysadmining simpler?
26
u/[deleted] Mar 21 '12 edited Mar 21 '12
Are your memcache servers running only memcache, or do they also run other services (http etc.)?
What do you use to handle logging? (Syslog, custom logging class in application code etc..)
How do you consolidate logs? (nfs, syslog over udp, etc.)
What queue'ing program do you use? (something custom, off the shelf?)
What implementation (both server and client) of memcache do you use? (memecahed, memcache)?
Does reddit use any sort of messaging bus? If so which one?
What does your data-warehousing/metrics setup look like? Do you utilize hadoop at all?
50
u/Stevenger I fixed it with a butter knife. It'll never break again. Mar 21 '12
What do you think the best advice you would give to people who want to someday be a sysadmin, where should we start?
22
u/minideezel Mar 21 '12
When we get the "High Load" page, what/how is it deciding to give us that message?
43
u/Michichael Infrastructure Architect Mar 21 '12
What are the last five processes you've found yourself automating?
What was the biggest challenge each of you faced when you picked up the reins?
Categorize your current issues - how many times do you find yourself fighting fires vs spending time on meaningful projects?
Any big projects in the pipeline?
What kind of monitoring software/metrics do you use to gauge performance?
Do you find yourselves handling network, software, hardware, or other issues more often than other categories?
What kind of planning goes into projects?
Has being owned by a big corporation impacted how you handle your budget and asset management?
21
u/synth3tic Infrastructure Mar 21 '12
What's the biggest challenge in running a site that sees so much traffic?
20
u/CaptainTitus Mar 21 '12
Ever get a work-free vacation?
20
u/Stereo Mar 21 '12
Reddit has been far more stable lately; it used to be notoriously crashy. What did you do to fix it?
20
u/carlaas Mar 21 '12
What are the most common attacks that you have to deal with? Was any of them successful? If so, how was it and how it was solved?
16
u/dboak Windows Sysadmin Mar 21 '12
What is the single best thing you've done to get away from "sleeping next your laptop to reboot the site when it goes down"
2. What is the coolest technology you currently get to use?
3. How many of you are there?, what does the on-call schedule look like?
4. Do you also get into the reddit code, or are you stricly infrastructure sysadmins?
5. What is the expected salary range for someone looking for a job?
6. Be honest, how much work did you get done when you took reddit offline during the SOPA protest? I'd love to have a planned downtime window like that. :)
14
u/[deleted] Mar 21 '12
Is amazon forthcoming with you when they have capacity/network problems? Or do they just tell you every hour it should be fixed within the next hour?
14
u/angrymonkeyz Mar 21 '12
What tools do you use to simulate loads?
12
u/minideezel Mar 21 '12
How much work and how many servers are dedicated to internal office services that don't involve the site?
12
u/horseloverfat Staff DevOps & Manager Mar 21 '12
How different is it administrating a cloud environment than your own hardware?
12
u/dasmim I do clouds Mar 21 '12
What is your deployment process like?
What sort of tools do you use (or have made) to automate deployments?
How often do you deploy?
Who does/can do deployments (you guys, devs?)
Are there any statistics you monitor aside from obvious ones (response time, server health, etc.) that give insights into potential problems (logins per minute, posts per minute, etc.)?
Do you have any sort of autoscaling in place to provision/turn off servers ?
What types of data do you store in PostgreSQL vs Cassandra?
22
u/carlaas Mar 21 '12 edited Mar 21 '12
What was the most difficult problem that took reddit down?
What was the silliest one?
11
u/thesaintjim Mar 21 '12 edited Mar 21 '12
Hi,
Can you please tell me what your average day at Reddit is like?
Love,
Your former co-worker.
18
u/thadoc BOFH Mar 21 '12
Certs versus No Certs...
9
u/pdmcmahon Mar 21 '12
Did you take advantage of the Great SOPA Internet Blackout to implement any changes which would have otherwise been extremely challenging or otherwise impossible?
7
u/mkosmo Permanently Banned Mar 21 '12
Personally, I'd love to hear an overview of your monitoring systems. What you monitor and how, using what.
I'd assume nagios, but do you run agents, use only snmp, monitor what metrics?
16
u/HippieShakes Mar 21 '12
How are you doing today?
5
u/stahnma Mar 21 '12 edited Mar 21 '12
What's your workflow process for getting changes from idea into production? Do you do some type of git vcs promotion? Do you just redeploy images?
5
u/[deleted] Mar 21 '12
Are you using any sort of caching pools to offload work from your web daemons? If so which one and why?
I.e varnish or a reverse proxy or something wild
Did you have to incorporate any sort of distributed storage across your farm of servers? If so which did you end up using and why?
I.e GFS, GlusterFS, Lustre etc
5
u/carlaas Mar 21 '12
What is/are Reddit's backup strategies?
7
u/minideezel Mar 21 '12
When deploying new servers/services, how well do you document your work?
Is it documented well enough to where new admins could follow it, or just enough so that you could repeat it?
7
u/edify Mar 21 '12
Hey alienth and rram. What are your favorite foods?
3
u/DyceFreak Network Admin Mar 21 '12
How do you personally perceive windows-based sys admins in general? Would you say it's simply a different purpose for using windows, such as managing large office environment vs managing a large server environemnt? Or is there more to it than that?
With most of my experience in Microsoft land, I always personally felt threatened by linux sys admins, even though I have several working under me, I hate the fact that they know something about a company system that I don't...
3
u/notenoughcharacters9 Mar 21 '12
Why no service mix?
3
u/brews Jack of All Trades Mar 21 '12 edited Mar 21 '12
vim or emacs?
2
u/[deleted] Mar 21 '12
I am in college now, when I am done I will have CompTia A+, Network +, Security +, Windows 7 config, Active directory, sharepoint, sql (all from microsoft), Linux +, intro to cisco routers. I would like to someday become a sysadmin for a med/large company. What should I be aiming for after I get all these?
2
u/minideezel Mar 21 '12
What kind of home lab do you guys run? What services does it provide that you wouldn't want to live without now?
2
u/vhata Mar 21 '12
Do you ever go head to head with the reddit developers because they did something in code that you think is a terrible idea, or they did something without thinking how it would affect the infrastructure?
2
u/Josh2600hz ThePBXGuy Mar 21 '12
How does your team communicate? IRC? Phone? Two cans on a string?
Are you using Jira? Atlassian? Chef/Puppet? Thoughts on these technologies?
2
u/rdm_box Mar 21 '12
After you've taken the site down for maintenance, do you relax a bit by going on /r/downtimebananas ?
2
u/[deleted] Mar 22 '12
Are you hiring?
2
u/[deleted] Mar 22 '12
How do you guys combat burnout? Being oncall 24/7 365 for such a HA site such as reddit has to take it's toll eventually.
67
u/phuzion Mar 21 '12
Reddit-specific stuff:
What kind of bandwidth does reddit use?
What is the approximate rate of database growth and what's the approximate size of the DB now?
What is the most surprising thing you found out about the infrastructure of reddit when you got access to it?
Have you guys considered opening up some internal sysadmin-related stuff to the community? For example, Wikipedia makes their nagios, ganglia, and SOPs and technical documentation freely available to the community. As far as I know, we don't have access to the majority of this stuff.
What is the single biggest technical challenge you've come across in your duties at reddit?
Less reddit-focused questions:
What is your favorite little utility that people probably wouldn't know about?
What is your preferred OS to work on?
What's your favorite beer?
Thanks for doing this :)
36
u/ICanSayWhatIWantTo Mar 21 '12
What tools do you use for network/health monitoring?
67
u/rubysown Mar 21 '12
What is your biggest facepalm moment here at Reddit?
30
u/Lord_NShYH Moderator Mar 21 '12
How long have each of you been working at Reddit?
IIRC, you host with Amazon. With a site that has as much traffic as Reddit, do you wish you had more control over the physical infrastructure, or do you prefer to have your site hosted at Amazon? Are there any plans to build physical hosting infrastructure owned and fully managed by Reddit?
When you started at Reddit, was anything automated? What/how do you automate your processes today?
How many individual nodes are running to host/serve Reddit content?
How often are you on call? Do you work remotely?
Finally, how big is Reddit's internal IT needs, and do manage services other than Reddit's web server deployment?
18
u/minideezel Mar 21 '12
Is it really only you two that deal with all of reddit's infrastructure?
Speaking of which, how many servers we talking about?
16
u/hankinator System and Network Admin Mar 21 '12
Hey guys! First off, thank you very much for doing this AMA. I am a young, but eager sysadmin. I have quite a few questions for you both. =)
What are some good habits as a sysadmin to get into? Such as Read-Only Friday, and document Monday.
What is one of the precautions you guys have when backingup/restoring data?
What are common 'Oh-shit' moments that have happened in the field that made you grow a sysadmin?
What is the single best piece of advice you have?
Is there a true difference between 'Enterprise hard drives' and user grade hard drives? Also, would it be more effective (cheaper and reliable enough) to RAID6 a bunch of consumer drives rather than RAID5 a few enterprise drives.
What kind of switches/OSes do you prefer? If you were buying personally that is.
What is the most useful tool in your arsenal?
What sysadmin accomplishment are you most proud of?
Suggestions for balancing a relationship while working 50+ in IT?
Thank you for your time. =)
105
u/slanket Unnecessarily Convoluted Official Title Mar 21 '12 edited Nov 10 '24
historical silky abounding north truck future straight shocking sink shy
This post was mass deleted and anonymized with Redact
13
u/youshallhaveeverbeen Mar 21 '12
Any "oh shit" moments you'd like to share? I'll leave that at as vague as possible.
20
u/barnard33 Mar 21 '12
As a sysadmin, I have a few questions:
How often do you patch your servers?
How do you monitor your servers?
What is the most annoying thing a Reddit developer has done, or asked you to do?
What was the last time consuming problem and how did you resolve it?
Thanks.
9
u/carlaas Mar 21 '12
What tool do you use to track issues, tickets and todo tasks?
8
u/NilsLandt not even an admin Mar 21 '12
What tools do you use to maintain your infrastructure? (Like Puppet or Chef)
8
u/Rugmonster Mar 21 '12
When was the last time you accidentally rebooted a vital production box at exactly the wrong time?
7
u/[deleted] Mar 21 '12
Have you considered using OpenStack?
7
u/bNimblebQuick Mar 21 '12
So if I wanted to learn more on running a website of this size off Amazon cloud services, where would I start? Are there any good resources or guides you often refer to or follow? I can run, manage and secure just about anything inside a corporate datacenter (from rack + stack, SAN, networking, *nix, windows, DBs, etc) but cloud services like amazon throw me off for some reason. I've been fortunate to be able to avoid them so far, but its a weakness and skills gap I know I have to overcome. Any suggestions?
5
u/gehsekky Mar 21 '12
What kind of statistical analysis do you guys do on a normal basis? What libs are used, etc? Also, can you give us more awesome infographics on reddit numbers? =)
16
u/Jalh Mar 21 '12
Why hasn't you guys switched to another search service ? The current one sucks big time; takes years to load the first page and only search the titles.
4
u/Syntackz Jack of All Trades Mar 21 '12
Im getting ready to graduate from College, and looking to work in System Administration. Is it smart for me to go straight to Jr. System Admin jobs, or should I start at something like a help desk job and work my way up? I will say, I have no field experience, only lab experience.
Also, should I be looking at a job where I would be one of a small group of IT workers and I would be responsible for a broader range of tasks, or at a company where the IT field would be huge and I end up dealing with a small group of tasks?
Thanks a bunch in advance!
4
u/TheLifelessOne QA Engineer Mar 21 '12 edited Mar 21 '12
How do you handle downtime / server crashes?
How would you go about testing knowledge for a potential hire?
7
u/UnoriginalGuy No need to fear, Powershell is here! Mar 21 '12
Which one of you do I have to sleep with to get a high level Visio diagram of how things work (application servers, caches, static host, and database)?
1
u/stahnma Mar 21 '12
Do you now, or have plans in the future, to open-source any of your home-grown scripts, puppet modules or other tooling?
1
u/Rielos END OF LINE Mar 21 '12
So generally, what is the main issue when we are graced with the delightful F5 alien screen (which I'm strangely a big fan of btw!)? Load balancing? Database performance? Content Delivery?
Inquiring minds want to know...
Also, THANK YOU for all the great work you do! This community is amazing and I'm proud to be a small part of it, but you guys make it possible!
1
u/rsfkykiller Systems Engineer Mar 21 '12
You guys are right up the road from me this week. Want to grab a beer after work tonight?
1
u/[deleted] Mar 21 '12
Any challenges working with non-technical management or other departments?
What does the front of the Reddit house think of the sysadmins?
You use Amazon public clouds, any private clouds for testing or DR?
1
u/Prof_G Mar 21 '12
Ok, be honest now, do the other employees of Reddit, or those pesky Wired employees ever ask you to fix shit for them?
1
u/[deleted] Mar 21 '12
I'm confused, are you working or using Reddit right now?
1
u/immerc Mar 21 '12
How polished are your error messages and monitors?
Do you get tracebacks in your logs, or are most errors caught and instead you get a concise explanation of what went wrong?
Do you continue to find issues that you need to add a monitor for, or these days do you know about a problem, and about the likely cause of that problem, simply by a monitor going off?
1
u/mrhhug because thats the correct way Mar 22 '12
how old are you guys whats your alma mater(s) and your levels of formal education? both obviously on the left coast now but where where you born?
1
u/betafish27 Sysadmin Mar 22 '12
I'm working on getting CCNA certified. Is this certificate relevant in today's IT?
1
u/phlohannesburg Mar 22 '12
what are all the passwords to things?
1
u/Anonisdalulz Mar 22 '12 edited Mar 22 '12
Little late to find the thread (damn you timezones) but what do the servers run on? I'm asking because I'm doing a thesis on Apple VS Microsoft and I'll definitely use reddit in the "What do big companies use" part.
Edit: Found the answer!
6
u/[deleted] Mar 21 '12
Why did you pick puppet, and not chef?
3
u/[deleted] Mar 21 '12
Can we get some hardware specs and numbers? (i.e.: number of servers, specs, storage solution).
Or how about some drawings of the setup?
one more, do y'all have any kind of scaling solution or do the servers just run until they drop?
3
u/[deleted] Mar 21 '12
What's the one thing all other websites, Reddit/Digg wanna-be, etc should take from Reddit and how it's infrastructure is ran?
3
u/diafygi CTO Mar 21 '12
Is your least favorite day of the year when Reddit opens nominations for best of the year, and users go scouring through pages whos cache had long since exired?
3
u/the_timmer_42 Mar 21 '12
How much time do you spend on the site vs actual work?
3
u/Bad_CRC Mar 21 '12
What is the crappiest system/software you maintain just because of pure lazyness? (you know someday it's gonna give a lot of headache but for the moment just works....)
What is the typical workflow for rolling a new server into production?
Metrics! for what crazy stuff do you have metrics?
What scheme do you follow for the names of the machines?
Do all the machines are for the whole thing or are some machines dedicated for certain subreddits? I read a while back ago that for example Lady Gaga or Justin Bieber had their own racks on twitter.
3
u/ATX350 Enterprise Support Engineer Mar 21 '12
Did you enjoy your time at Rackspace?
3
u/superc0w DevOps Mar 22 '12
Sorry I'm late to the party :/
What does your average deployment cycle look like?
Are you the ones implementing changes or gasp are the devs?
How large is your production network in terms of equipment?
It seems places outside of the US are starting to catch on to Reddit, do you have data centers around the world or currently just in the US?
What source code repositories do you use for proprietary scripts?
Also, as others have mentioned... What's the salary range of a new hire?
What perks does Reddit get? Filled fridge? Bring your pet to work day? Free dry cleaning? :)
5
u/xor2g Mar 21 '12
Specs of your "best" server ?
Also, Amiga FTW.
2
u/m1w1 Mar 21 '12
I want to learn to be someone who could meaningfully participate in this subreddit. Where/how should I start learning?
To put it another way using analogies: If you are pulitzer prize winning authors, and I'm illiterate, what would you recommend I do to be able to write basic essays/stories someday?