I deal with a lot of different clients on a daily basis. It is a bit of a chore to figure out how to tie together their different messaging apps in order to interact with them and be alerted of any needs or emergencies.
Most clients nowadays use either Slack, HipChat, Google Hangouts, and Skype. With Slack and HipChat being most popular in my regards. The main issue I have is that I use Linux and the Slack web interface is a resource hog and can only monitor one client at a time. Whichever one is loaded at the time. The HipChat web interface is a bit lighter but the same issue persists as with Slack.
Luckily with Slack you can enable either (or both) XMPP and IRC. With HipChat you can only enable XMPP.
For Slack you go to Admin Settings and enable both or your choice:
Over Capacity? photo by Tony Alter (Flickr)
Capacity planning is not a black art. But when it comes to sites doing a scheduled flash sale or a person with a large number of social media followers (over 1mil) it can get ugly fast! I witnessed this today for a site that was opening up new memberships at a specific time. Their site runs on Magento and that is about all I know since they are not a client. To not help matters they were also using Cloudflare which just showed their own error message.
So how can this be prevented?
Magento and most LAMP applications like WordPress are known for not scaling very well. You have to leverage caching and CDNs along with using the correct config files such as my.cnf (MySQL) to optimize performance. Using default configurations will NOT do you any favors!
If using Amazon Web Services (AWS) you should be leveraging:
- RDS Cluster (MySQL)
- ElastiCache (memcached)
- Correct EC2 Sizing
- Elastic Load Balancers (ELB)
- CloudFront (CDN)
Getting back to the example that inspired to me write this. During the first hour the complaints on their Instagram were quick and heavy. Users even taking pictures of the Cloudflare error page and posted those in frustration. Needless to say it is not the best PR after building up to an event and getting more interest than you saw coming. After two hours they gave up and posted a page to postpone their event. With correct capacity planning and configuration of Magento this could have gone much better!
If you’d like help scaling your site please feel free to contact me or visit my company site – http://tarnover.com
I have been somewhat of a terminal junkie for well over 20 years. Right now some of my favorite CLI applications are:
- Rainbowstream – Twitter on the command line
- IRSSI – IRC client (works with Slack too!)
- MUTT – email client
- MOC – music player
- htop – top but prettier
finch – basic Pidgin for CLI (no OTR support is downside) see update below
- pianobar – Pandora on CLI (no ADs!!!)
- galileo – syncs FitBit via CLI
- vim – text editor
- ngrep – packet analyzer
- nmap – THE port scanner
- dtrx – decompress without the fuss
- dstat – monitor numerous parts of your system
- mtr – traceroute and ping rolled into one
- multitail – tail on steroids
- screen – terminal multiplexer
- netcat – network Swiss Army knife
- WordGrinder – CLI word processor good for serious writing
If using Debian based Linux (Ubuntu, Mint, etc.) just do:
sudo apt-get install siege mtr pv irssi mutt-patched dtrx screen iftop iotop dstat multitail netcat nmap lftp gnupg moc htop finch pianobar python-pip wordgrinder && sudo pip install rainbowstream
Other honorable mentions (terminal related)
- termininator – terminal emulator with a lot of cool features
- guake – drop down terminal
A few more that I have grown to like:
- ranger – file manager with vi like commands, very customizable
- rclone – rsync for cloud storage
- rtorrent – CLI bittorrent client
- profanity – XMPP (Google Talk) CLI interface that supports OpenPGP and OTR inspired by IRSSI