Hacker Newsnew | past | comments | ask | show | jobs | submit | smnv's commentslogin

Designing Data-Intensive Application, aka “The Boar Book” (kabanchik)


I mostly see it referred to as DDIA and most people know already what the acronyms means. I don’t know if an acronym counts for OP’s naming scheme though.


The consistent pattern I've noticed is that the books gain their nickname (usually) from the cover of the 1st Edition of the Book.

Acronyms can count too!


It's probably better if you provide a bit more context: "boar" is "kabanchik" in Russian


Stop drawing those pixels, people are dying!

https://www.snopes.com/fact-check/bono-of-contention/


From the consumer side:

I've bought a Qingping ClearGrass Air Monitor (CGS1). It costs about $100, but has CO2, tVoc, PM 2.5, PM 1.0, temperature and humidity sensors. From what I've read, sensors are quite good, people only sometimes complaining for bad fans, that need to be fixed after a year or so of use. Everything in one nice USB-C powered case with a sensor screen. A bit too much animation once a minute, that can't be disabled. Data is sent by WiFi.

There is a Qingping App for Android and IOS with some graphs and insight into values, but not much. It also can be integrated with Mi Home, but doesn't work for my region, and I can't get token to talk to it with python-miio, as in this habr example [1]. This example doesn't work too [2], looks like the api has changed.

So after a bit of sniffing I've made a simpler solution:

1. Installed Mosquitto MQTT Broker on my home gateway

2. Made a DNAT redirect of qing.cleargrass.com requests to this broker:

  iptables -t nat -A PREROUTING -i br-lan -p tcp -d qing.cleargrass.com --dport 11883 -j DNAT --to-destination 127.0.0.1:11883
3. Added a cron job of periodic subscribing for air monitor data. Without this message it doesn't push the data. The topic consists of some base64 uid and air monitor MAC address, I wrote it in square brackets, should be changed by end user:

  */5 * * * * /usr/bin/mosquitto_pub -h 127.0.0.1 -p 11883 -t '/[uid]/[mac]/user/get' -m '{"duration":"303","up_itvl":"2","type":"12"}'
4. Configured a mqtt_consumer in telegraf:

  [[inputs.mqtt_consumer]]
    servers = ["tcp://127.0.0.1:11883"]
    name_override = "air_monitor"
    topics = [
      "/+/+/user/update",
    ]
    data_format = "json"
    tag_keys = [
      "mac",
    ]
5. Created graphs and alerts in grafana. It was easier for me to create a further automation from there.

It is sad that there are still no easy way to connect everything in a "smart" home.

[1] https://habr.com/en/post/482352/#comment_21085236 [2] https://habr.com/ru/post/493220/

Edit: formatting


mtr -z? I mean, it is a good learning effort, but if someone doesn’t know about mtr, they should: https://bitwizard.nl/mtr/


To be fair the man page on my nearest ubuntu machine says

       -z, --aslookup
              MISSING

I assume from the context that it does the mtr equiv "traceroute -A" though


-z only shows AS numbers, not names. The point of this is to quickly tell you companies and networks you recognize. Also, mtr requires sudo to run.


This just shows AS number rather than name, though, right?


Most receipts in my country have a qr code at the bottom with the link to the receipt in human and machine readable format. In the next year this will be mandatory for everyone. Russia.


I was going to ask, who came up with a dumb idea of using a link (i.e. URL) to access receipt data over the Internet, but fortunately it seems to not be the case - the QR code on the receipt posted by 'savant_d[0] reads:

  t=20170221T095900&s=30.00&fn=99990789659&i=501&fp=4189225230&n=1
--

[0] - https://news.ycombinator.com/item?id=17601617


mikrotik has capsman controller in all its gear, even without wifi. works quite nice, with roaming and such. cheap. boxes are ugly though.


And the software on 'em is buggy as hell and QA is apparently non-existent. Take a look at the release notes for any recent version of RouterOS for the kind of bugs they {introduce,fix}.


What about http://cacti.net/ ? With Weathermap plugin it is quite good thing for performance monitoring. THold and Monitor plugins are for availability monitoring and alerting. It scales very good with Boost plugin, I had 3000+ hosts, 60000+ datasources with total poll time within one minute.

Many prefer Cacti to Zabbix because the latter is clunky and confusing compared to Cacti's simple straightforward approach with plugins.

But I am actually wondering, how alive is Cacti now, because its releases are constantly postponed, and forum is not as alive as it used to be.


Cacti is just a graphing tool that sits on top of RRDTool . It doesn't provide up/down monitoring and host/service check scheduling, it doesn't provide features such as alert escalation logic, and a whole bunch of other fairly important things that a monitoring engine such as Nagios does.


Cacti serves a very different purpose, IMO. Up/down monitoring is not a core feature and, honestly, it's not that good at it.


Newer Cisco IOS versions (IOS XE for example) are running as a process in linux. Old IOSes were linux-based too. Don't mix up Cisco IOS with Apple iOS (which has roots in BSD).


huh. I thought they were using a QNX based one on the new stuff.


Plain old IOS is a monolithic program and tends to be used in older routers and current small-to-medium routers & modern spins of older product lines.

IOS XR runs on QNX and tends to be used on routers in a carrier role.

IOS XE runs on Linux and tends to be used on service/aggregation routers.


Good to know. Thanks for the info.


it was more impressive last year, when he was talking for 3.5 hours while the most of the group stage games of quakelive tournament was played. there was only one quakecon stream allowed, so those games had to be democasted later.

i had a very mixed feelings: on one hand, listening carmack is very interesting, on another - i am a quake fan and wanted to see great games.

this year they have a separate stream for games, and it is great btw. absolutely top notch work from the faceit team: http://www.twitch.tv/quakecon


That can be a great movie plot.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: