10,505 karma · joined Feb 3, 2021 (5y ago) · 2,505 submissions
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
Otherwise the official docs are quite good and worth starting there. I'd be wary of buying books that are more than a year or two old--the k8s space moves fast and they regularly have major updates once or twice a year. Books and docs can get a bit stale or out of date with current best practices.
comment 5y ago · link · parent
Do note that you need a DNS provider with a good API to programmatically control it (the DNS challenge requires setting a special txt record that Lets Encrypt verifies). Read the docs to learn more, but most of the big ones (AWS Route 53, Cloudflare, etc.) should be fine.
comment 5y ago · link · parent
But what if I told you that you needed to run that docker container on 5,000 machines with 2,500 load balancers in regions across the world? Are you going to SSH into thousands of boxes manually and run docker commands? Are you going to try setting up some monster ansible inventory to do the same? In practice the best minds in distributed computing have found those kind of practices break down at large scale--you just cannot reason or deal with individual machines when there are thousands of them.
This is where kubernetes comes in--it's an abstraction that lets you declare "here's the state I want, X machines running Y containers, all linked through Z services" and kubernetes will make it happen, period. It will take care of contacting thousands of machines, controlling the running containers, ensuring they stay running, handling failures, monitoring, load balancing, etc. You no longer think about problems in terms of low-level machines and instances, you think about the higher level objective like deploying code.
The beautiful thing is that it scales down nicely. A simple 50 line YAML file that declares running your docker container and load-balancing it with a service can easily deploy just to your local machine, or be scaled up to run on 5,000 machines by just changing a variable in the deployment scale. The same simple one-liner kubectl command kicks of either deployment and helps you monitor its progress. If you've ever worked in distributed systems it is really incredible to see this in action at scale.
comment 5y ago · link · parent
Anyways, here's a Dockerfile I whipped up that builds and runs a local version configured to use sqlite. No nginx or other stuff, it's just simple localhost config (not production ready):
# Focalboard v0.6.1 requires node 10+
FROM node:15-buster-slim
# Focalboard source to clone.
ARG FOCALBOARD_REPO="https://github.com/mattermost/focalboard.git"
ARG FOCALBOARD_BRANCH="v0.6.1"
# Focalboard v0.6.1 requires make.
RUN apt-get update && apt-get install -y \
gcc \
git \
make \
&& rm -rf /var/lib/apt/lists/*
# Focalboard v0.6.1 requires go 1.15+
COPY --from=golang:1.16-buster /usr/local/go /usr/local/go
ENV PATH="/usr/local/go/bin:$PATH"
# Clone focalboard.
WORKDIR /opt/focalboard
RUN git clone --depth 1 --branch $FOCALBOARD_BRANCH $FOCALBOARD_REPO .
# Build focalboard.
RUN make prebuild \
&& make webapp \
&& make
# Setup a localhost configuration with sqlite.
RUN echo '{\
"serverRoot": "http://localhost:8000",\n\
"port": 8000,\n\
"dbtype": "sqlite3",\n\
"dbconfig": "/data/focalboard.db",\n\
"useSSL": false,\n\
"webpath": "./webapp/pack",\n\
"filespath": "/files",\n\
"telemetry": true,\n\
"session_expire_time": 2592000,\n\
"session_refresh_time": 18000,\n\
"localOnly": false,\n\
"enableLocalMode": true,\n\
"localModeSocketLocation": "/var/tmp/focalboard_local.socket"\n\
}' > /opt/focalboard/config.json
# Uploaded files are stored here.
VOLUME /files
# Sqlite database is stored here.
VOLUME /data
CMD ["/opt/focalboard/bin/focalboard-server"]
It will need a volume at /files for uploaded file storage, and /data for its sqlite database. It exposes a server on port 8000, and an admin API unix socket on /var/tmp/focalboard_local.socket (read their docs for what it's useful for, like resetting passwords). The Dockerfile should be multiarch, but I can only test on amd64. Low spec hardware (raspberry pi) might struggle a bit with the build as it's a non-trivial go server build, and then production webpack bundle... weird failures might be OOM issues.Here's an example of a basic build and run, saving the files and db to a local directory:
<copy Dockerfile contents above to file>
docker build -t focalboard .
docker run --rm -p 8000:8000 -v $PWD/files:/files -v $PWD/data:/data focalboard
Access http://localhost:8000 and it will let you create a new user account.(go wild with the Dockerfile above, I release it in public domain)
comment 5y ago · link · parent
But, at the end of the year you were calibrated against all of your peers and WLB was not a criteria that mattered. If you just put in your 40 hours you probably wouldn't get fired, but you definitely were not going to be promoted when compared to the people cranking out more work per week. There was a big divide with the younger, fresher folks working all the time (and making their work very visible).
Once you were a senior dev you kind of had a choice to make--if you wanted to keep a high 'promotional velocity' you had to keep working >40 hour weeks or be left in the dust. If you didn't want to climb that ladder then it was totally fine but you would never be promoted beyond another level or two. I knew folks who were senior devs for 10, 15, or even more years. In contrast the partners/high performers were all regularly getting promotions every 2 years or less and absolutely none of them I knew worked less than 60-80 hours a week. To get promoted up to principal and beyond levels required having a consistent history of promotions every couple years--there was no way to really pause or slow down without stopping your entire career development.
From my friends still left there I don't think much has changed over the years. It's a somewhat subtle system where managers and HR can proudly point to never requiring people to work crunch time. They can trot out plenty of 10 year senior engineers to give quotes and talk about how it's so great to just work 40 hour weeks. But at the end of the day if you want to be successful and rise up the ranks at MS, you are going to be working all the time, period (at least until you reach partner level).
comment 5y ago · link · parent
comment 5y ago · link · parent
"We evaluated using off-the-shelf solutions to run the platform. But in order to de-risk our migration and ensure low engineering costs, it made sense for us to continue hosting services on the same deployment orchestration platform used by the rest of Dropbox."
It sounds like they acknowledge they're reinventing a lot of stuff but for now are sticking to their internal platform. Perhaps Atlas is a half-step then to get teams used to owning and running their code as isolated services. But everything I read that they built in Atlas--isolated orchestrated services, gRPC load balancing, canary deployments, horizontal scaling, etc.--are bog standard features of Kubernetes today. I'd be very leery of maintaining a bespoke Kubernetes-like platform in 2021 and beyond--in some ways it seems like it's just shifting the monolith technical debt into an internal Atlas platform team's technical debt. What's the plan to get rid of that debt for good I wonder?
This hurdle shows there's already some cracks in the idea of long-term Atlas too:
"While splitting up Metaserver had wins in production, it was infeasible to spin up 200+ Python processes in our integration testing framework. We decided to merge the processes back into a monolith for local development and testing purposes. We also built heavy integration with our Bazel rules, so that the merging happens behind the scene and developers can reference Atlasservlets as regular services."
If I read that right does it really mean the first time a developer's code is run like it will run in production is when it goes out to canary deployment? I.e. integration tests are done in a local monolith instead of setting up a mini-prod cluster. That seems a bit nerve-racking as a dev to have no way to really test the service until bits are hitting user requests. In the k8s world a ton of work has been put into tooling and processes to make setting up local clusters easily. It's a shame to not have something similar for Atlas.
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
(it should also be mentioned the old vimscript support isn't going away, you can still use old configs)
comment 5y ago · link · parent
No where did I say any of these vaccines are 'live' or even attenuated coronavirus. It is 100% impossible to get infected with covid-19 from any of the vaccines. However it is possible to take a drug which lowers your immune system response and you fail to build a strong response to the vaccine and the spike protein RNA or other bits in the vaccine. Hence why I said _talk to your doctor before doing anything like taking aspirin right before the vaccine_.
This site is full of pure lunacy when it comes to any COVID-19 or medical issues. The comments in this thread and many others over the past weeks are just unbelievable low quality. Folks, stay in your lanes with software and startups...
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
Apparently the total cost for Hubble is on the order of 10 billion. That's just a fraction of what a tech company like Apple makes every quarter, so I think it was a totally reasonable expense relative to its discoveries.
And luckily we learned building giant, precise mirrors with 1980s technology maybe wasn't the best decision. The James Webb design is totally different and hopefully less prone to such problems.
comment 5y ago · link · parent
comment 5y ago · link · parent
Alternatively grab a design system built by someone who already took care of all the typography decisions.