Better HN
topnewbestaskshowjobs
Log inSign up

cliffcrosland

198 karma · joined Sep 23, 2010 (16y ago) · 49 submissions

Co-founder of https://scanner.dev
Submissions

comment 2y ago · link · parent

tl;dr don’t use an architecture from the on-premise era where storage and compute are coupled together.

2.

How Not to Spend Half a Million Dollars on Logs(blog.scanner.dev ↗)

6 points · by cliffcrosland · 2y ago · 2 comments

comment 3y ago · link · parent

Great project. Zig and Rust working together in harmony to make it easier to cross-compile Rust for different targets. We use this to great effect to build for x86 and ARM chips in AWS.

4.

Cargo-zigbuild: Compile Rust using Zig as linker for easier cross compiling(github.com ↗)

2 points · by cliffcrosland · 3y ago · 1 comment

5.

Serverless Speed: Rust vs. Go, Java, and Python in AWS Lambda Functions(blog.scanner.dev ↗)

5 points · by cliffcrosland · 3y ago · discuss

comment 3y ago · link · parent

We're really liking the combination of using Rust, AWS Lambda functions, and ECS Fargate. Everything runs well in ARM, but make sure to use `musl` instead of `glibc` - we've found memory usage to be almost 10x lower with `musl` than `glibc` for our use case (indexing and searching logs). If anyone wants to talk about the tech, happy to answer questions!

7.

Why we're building Scanner: data lake search must be fast(blog.scanner.dev ↗)

6 points · by cliffcrosland · 3y ago · 1 comment

comment 3y ago · link · parent

Yeah I think this is where Datadog excelled and Splunk struggled. Design is clearly better at Datadog, especially the onboarding UX and workflow.

comment 3y ago · link · parent

Maybe, but the Splunk query language is reasonably well liked by its users, at least in the security space. Much more approachable than SQL, which seems to be what all new tools these days are forcing users to use due to their dependence on Snowflake and Presto/Trino. In Splunk, you can type free text queries, and you can also add structure. Fairly flexible. We’ve been asked many times to make Scanner’s query lang more like Splunk’s.

comment 3y ago · link · parent

I worked at Cisco following an acquisition. I tend to agree with this comment about the upper stacks :)

However, AppDynamics and Duo seem to be doing well at Cisco from what I can tell. I think observability and security tools are a good match for Cisco and bundle well with hardware. For this reason, I’ll bet Splunk does reasonably well under Cisco too.

comment 3y ago · link · parent

We’re also giving this a shot. The annual Splunk bill at our last startup exploded from $10k to $1M when we reached 1TB of logs generated per day, which is actually an easy threshold to hit when you have decent traction and aren’t proactively reducing logs. So we built Scanner.dev to drop these costs by 10x.

Decoupling compute and storage is definitely the way to go. We’re using Lambda functions and ECS Fargate containers for compute that scales up and down rapidly, and S3 for storage. Getting ~1TB/sec log scan speeds, which feels fairly good. We keep sparse indices in S3 to narrow down regions of logs to scan. Eg. if you’re searching for an IP address that appears 10 times in a 25TB log set, the indices reduce the search space to around 300MB. Takes a few seconds to complete that query, whereas Athena and CloudWatch take like 20 minutes.

We’re also using Rust to maximize memory efficiency and speed - there are lots of great SIMD optimized string search and regex libraries on crates.io.

We’re early, so there are a lot of SIEM features like detection rules that we are still building. But Splunk/DataDog users might find it useful if costs are a problem and they use mostly log search:

https://scanner.dev

comment 3y ago · link · parent

How do you think Splunk will fare as more companies move to public clouds? Seems unbeatable on-prem, which probably means that the company is a good match for Cisco.

comment 3y ago · link · parent

Agreed. Costs plummet when you use S3 as the storage medium for these massive log data sets. I think S3 is much faster to query than most people realize. Just have to be smart about how you organize things.

comment 4y ago · link · parent

Looks really cool! Great work!

Had a pricing question. Say we connected a log forwarder like Vector to send data to Clickhouse Cloud, once per second. If each write unit is $0.0125, and we execute 86,400 writes over the course of the day, would we end up spending $1080? Do you only really support large batch, low frequency writes?

comment 4y ago · link · parent

We are using Rust to build a fast log event database. The workload includes a lot of asynchronous networking I/O and parallelized CPU-intensive work, like indexing and SIMD-accelerated string search. There are great libraries for what we need. The performance and low memory footprint are quite useful.

comment 7y ago · link · parent

> But the biggest reason to RiiR is safety.

100% agree. We had a C++ service that made heavy use of libcurl. A particular release of libcurl introduced some memory safety problems that caused frequent segfaults for us. These memory safety bugs were eventually fixed in another release, but it scared us enough that we investigated rewriting the service in Rust.

After successful experimentation with some prototypes, we eventually rewrote the service in Rust, auditing the unsafe code in our dependencies (of which there was very little). No segfaults ever since.

Side benefit: Since Rust networking libraries tend to have strong async support, and since some of our C++ libraries performed synchronous networking operations, we saw a big improvement in performance. The number of threads needed dropped by 5x.

comment 7y ago · link · parent

Reading an enumeration of architecture options can be helpful, but I've probably found more value in works like Ousterhout's "A Philosophy of Software Design" that cover fundamental design principles. Such principles seem to be applicable no matter the project.

I appreciate that Ousterhout tries to support these principles with some data from his own experience (building Tcl, RamCloud where Raft consensus was discovered, etc) and from code reviews of student projects in his design course, but he admits that there is a lack of data about things like design.

Sample principles from Ousterhout:

* When developing an interface, favor exposing a small number of functions each with deep functionality over exposing a large number of functions each with shallow functionality. For example, favor Unix file I/O interface (open, close, read, write, unlink) over Java file I/O interface (File, FileReader, BufferedReader, FileWriter, BufferedWriter, FileNotFoundException, ... etc.)

* When choosing between keeping your code specific and keeping your code general, favor "somewhat" general. For example, instead of exposing "deleteNextCharacter(text, pos), deleteNextWord(text, pos), deleteNextSentence(text, pos)", just expose "delete(text, pos, length)" and let the caller use it how they will.

comment 9y ago · link · parent

To be honest, I feel bad for the engineering team at Equifax. The vulnerability that compromised their system was a bug in an open-source Java library, Apache Struts, and security researchers only noticed it a few days ago. It seems that the Equifax team had very little time to react and update their software. In some sense, I feel that more blame should be placed on the engineers who built the highly popular open-source software, not the Equifax team. Some large number of Fortune 100 companies also experienced the same vulnerability simply because they trusted a widely used library.

Makes me wary of trusting other big OS libraries, but since rebuilding every part of the stack from scratch is infeasible and unproductive, we don't have much choice but to use them.

Technical announcement:

Severe security vulnerability found in Apache Struts using lgtm.com (CVE-2017-9805):

https://lgtm.com/blog/apache_struts_CVE-2017-9805_announceme...

comment 9y ago · link · parent

My father saw his biggest entrepreneurial success as a father of four kids in junior high and high school. I believe his schedule looked roughly like this:

- 6am work at home

- 8am work at office

- 6pm dinner with family at home, or cheer at kids' athletic events

- 8pm work at home

- 11pm or 12am, sleep

- In early days, he slept on couch near computer to take customer support calls at night.

It wasn't until I was older that I realized how much my family was prioritized.

That said, my mom wanted to be a full time caregiver and did an amazing job of it, so his caregiving responsibilities were not nearly as extensive as my mother's.

comment 9y ago · link · parent

Strangely enough, Stoicism. I try to recognize what I can control and what I can't, and I try not to let things I can't control scare me into inaction.

comment 10y ago · link · parent

Luminus - compilation of Clojure libraries for web dev. Postgres.

comment 10y ago · link · parent

We use C++ heavily at Accompany. The CTO co-founder was one of the chief engineers at Google Analytics where most of the highly scaled systems were written in C++. Perhaps you could try investigating startups where the founders have a Google engineering pedigree?

comment 10y ago · link · parent

Anecdotal data point: my father was an entrepreneur for 100% of my childhood. It was rare for him to miss dinner with us, and he attended easily more than 60% of our extracurricular events. He'd often work from home late after we went to sleep, sometimes sleeping next to the phone to take customer support calls 12-5am. He had freedom to spend time with family and worked sufficient hours to achieve successful outcomes for his businesses. I think this form of scheduling is effective. Another anecdote: apparently Sheryl Sandberg also eats dinner with her family every day but works from home late at night and early in the morning.

24.

Ask HN: Do some YC values need to be softened?

10 points · by cliffcrosland · 10y ago · 6 comments

comment 11y ago · link · parent

Thank you for sharing. Despite some scientific fumbles, I thought Interstellar did a great job portraying the gravitational lensing effects of black- and worm-holes. I just wish that the worm-hole travel scene would have been as short and strange as this proof-of-concept rendering. Will definitely pore over these materials later. Much appreciated.

comment 11y ago · link · parent

An excellent point. The pointer is indeed distracting. I just removed it from my demo, and it's much better. Thanks

comment 11y ago · link · parent

Your demo is excellent! If you don't mind, I might dig into the source later to compare our approaches. I'm thinking about doing a 3D visualization sometime, and I'm interested in seeing how other people solve the problem.

Great point about the warping issue in my demo. I use a solver to produce a quadratic polynomial that maps in-angles to out-angles. I feel like the coefficients produced by the solver don't fit the data very well for pixels far away from the black hole, resulting in zooming / warping. I'm going to dig into it a bit and see if I can produce a better polynomial.

UPDATE: Just made a quick change. The solver was only attempting to match data up to, but not through, the FOV limit, which meant that the polynomial did not fit data near the FOV limit very well. I updated it so that it now uses data up to and beyond the FOV. There is still a bit of warping for far away pixels, but there is substantially less than before. Thank you for the tip.

28.

Show HN: Black-hole.js – Visualize black hole gravitational lensing in WebGL(github.com ↗)

72 points · by cliffcrosland · 11y ago · 14 comments

comment 11y ago · link · parent

When I was a freshman in college, I was in a humanities class that focused on the intersection between humans and machines. We had an assignment to build and test out a "prosthesis", i.e. a technology that extends human capability, in Second Life.

I created a simple wristwatch accessory that was scripted to upload a copy of all of your chatbox text to an external service. Later, you could log in to this external service and search through a history of all of the conversations your character ever overheard.

Real-world versions of this technology appear inevitable as digital storage costs trend to zero. A rudimentary digital copy of the physical world is being created in services like Google Maps. The Google self-driving car records a 3D copy of its surroundings with accuracy at the centimeter level. Dropcam uploads video and audio data from within your home to cloud storage.

A world with fully recorded life experiences seems creepy at first blush, but I believe we'll discover a mechanism for trust that will allow everyone to safely record a digital copy of their lives that is inaccessible to third parties. Perhaps in the future we'll each own an open-source private cloud container of CPU and storage resources. Instead of processing your data on external servers, third-party services might provide code that runs in your own container under tight network permission restrictions. Such a system might be able to maintain the benefits of continuous software deployment while allowing consumers to keep their data under their control.

comment 12y ago · link · parent

The assumption that startup success relies on enduring 80 hour work weeks is a commonly held one in Silicon Valley, yet there are some remarkable counter-examples. Dropcam, for example, made it an explicit part of their culture that employees work a focused 40 hour work week and have dinner with family and friends outside of the office. The CEO believes that startups who offer dinner at work are basically manipulating employees to work late into the night [1]. Did these sane, healthy work policies hold Dropcam back from massive success? Nope. It was acquired for half a billion dollars [2]. For the sake of our team members and employees, I think we would do well to emulate Dropcam.

[1] http://www.xconomy.com/san-francisco/2013/04/23/dropcam-ceos...

[2] http://techcrunch.com/2014/06/20/google-and-nest-acquire-dro...

12