Ethan's Blog


  • Home

  • Archives

  • Tags

  • Search

Meetings

Posted on 2019-08-18

Running a face-to-face meeting

So, let’s get started.

Useful Tips

  • Go through the agenda at the start of the meeting and check no items are missing.
  • Ensure good timekeeping during the meeting, making sure that participants stick to the agenda and don’t get sidetracked.
  • Control the discussion, making sure all participants contribute where relevant and that no one person dominates the whole meeting.
  • Summarize key decisions at the end of each agenda point.
Read more »

Telephoning

Posted on 2019-08-15

Cold calling

Do you have a moment to speak to me?

Useful Tips

When cold calling (approaching prospective clients or customers for the first time), keep the following points in mind:

  • Be clear and concise about who you are and the purpose of the call.
  • Use questions to help and guide the person you are calling.
  • Always use titles (such as Dr., Mr., and Ms.) and never first names.
  • Don’t be offended by hostile behavior. It’s not personal.
Read more »

Mesos - 优秀的集群资源调度平台

Posted on 2019-08-12

Mesos 项目是源自 UC Berkeley 的对集群资源进行抽象和管理的开源项目,类似于操作系统内核,使用它可以很容易地实现分布式应用的自动化调度。同时,Mesos 自身也很好地结合和支持了 Docker 等相关容器技术,基于 Mesos 已有的大量应用框架,可以是实现用户应用的快速上线。

简介

Mesos 可以将整个数据中心的资源(包括 CPU、内存、存储、网络等)进行抽象和调度,使得多个应用同时运行在集群中分享资源,并无须关心资源的物理分布情况。
如果把数据中心的集群资源看作一台服务器,那么 Mesos 要做的事情,其实就是今天操作系统内核的职责:抽象资源 + 调度任务;Mesos 拥有许多引人注目的特性,包括:

  • 支持数万个节点的大规模场景(Apple、Twitter、eBay 等公司使用);
  • 支持多种应用框架,包括 Marathon、Singularity、Aurora 等;
  • 支持 HA(基于 ZooKeeper 实现);
  • 支持 Docker、LXC 等容器机制进行任务隔离;
  • 提供了多个流行语言的 API,包括 Python、Java、C++ 等;
  • 自带了简洁易用的 WebUI,方便用户直接进行操作。

Mesos 自身只是一个资源抽象的平台,要使用它往往需要结合运行在其上的分布式应用(framework)。

Read more »

Networking

Posted on 2019-08-12

Starting a conversation

Where do you come from then?

Useful Tips

  • Successful small talk is not about saying brilliant things. It’s about commenting on and asking about ordinary things with conviction, interest, and enthusiasm.
  • Match the mood of your conversation partner. If they are smiling and cheerful, be ready to laugh. If they seem serious, be serious too.
  • Ask where your partner comes from and, when somebody asks you the same thing, be ready to add something interesting about the place.
  • Ask what your partner does and, when you’re asked the same question, don’t only give a title. Add a small piece of interesting or amusing information about the job or responsibility.
Read more »

使用 Dockerfile 创建镜像

Posted on 2019-08-04

Dockerfile 是一个文本格式的配置文件,用户可以使用 Dockerfile 来快速创建自定义的镜像,本文会介绍使用 Dockerfile 的一些最佳实践。

基本结构

Dockerfile 由一行行命令语句组成,并且支持以 # 开头的注释行。主体内容分为四部分:基础镜像信息、维护者信息、镜像操作指令、容器启动时执行指令。
下面给出一个简单的示例:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# escape=\ (backslash)
# This dockerfile uses the ubuntu:xeniel image
# VERSION 2 - EDITION 1
# Author: docker_user
# Command format: Instruction [arguments / command] ..

# Base image to use, this must be set as the first line
FROM ubuntu:xeniel

# Maintainer: docker_user <docker_user at email.com> (@docker_user)
LABEL maintainer docker_user<docker_user@email.com>

# Commands to update the image
RUN echo "deb http://archive.ubuntu.com/ubuntu/ xeniel main universe" >> /etc/apt/sources.list
RUN apt-get update && apt-get install -y nginx
RUN echo "\ndaemon off;" >> /etc/nginx/nginx.conf

# Commands when creating a new container
CMD /usr/sbin/nginx
Read more »
1…454647…55
necusjz

necusjz

274 posts
16 tags
© 2016 - 2025 necusjz
Powered by Hexo
Theme - NexT.Mist