moooofly

Results 187 comments of moooofly

# [what's the purpose of ssh-agent?](https://unix.stackexchange.com/questions/72552/whats-the-purpose-of-ssh-agent) - I've read the official definition: **`ssh-agent` is a program to hold private keys used for public key authentication (RSA, DSA, ECDSA)**. The idea...

## 总结 实践下来,最好用的方式为 ``` eval $(ssh-agent -s) ssh-add ~/.ssh/id_rsa ``` > 注意:`eval $(ssh-agent bash)` 不行; 执行后,当前 terminal 立即生效,在其他 window 或 tab 上也直接可用了;

# EIP 小结 弹性公网IP(Elastic IP Address,简称EIP),是可以独立购买和持有的公网IP地址资源。目前,EIP可绑定到专有网络类型的ECS实例、专有网络类型的私网SLB实例和NAT网关上。 **弹性公网IP是一种NAT IP**。它实际位于阿里云的公网网关上,通过NAT方式映射到了被绑定的ECS实例位于私网的网卡上。因此,绑定了弹性公网IP的专有网络ECS实例可以直接使用这个IP进行公网通信,但是在ECS实例的网卡上并不能看到这个IP地址。 > 我:我这边部署在阿里云的 proxy 绑定了 EIP ,这个 IP 是 aliyun 提供的持久可用(不会因为机器销毁等原因就销毁)的 IP 么,并且是可以漂移到其他实例的么? > > 客服:是的

# [Updating Logstash's configuration](https://elk-docker.readthedocs.io/#updating-logstashs-configuration) > 此文内容需要结合 https://github.com/spujadas/elk-docker 一起看 - [Logstash 的目录布局](https://www.elastic.co/guide/en/logstash/current/dir-layout.html#zip-targz-layout) - Logstash 服务自身使用的配置在 `/opt/logstash/config` 目录下(通过 `docker exec -it /bin/bash` 进入到容器中查看),有 - jvm.options - log4j2.properties - pipelines.yml - startup.options 其中...

补充: - 隧道代理中代理只负责建立浏览器到目标服务器之间的隧道 socket,有了隧道,可以认为浏览器和目标服务器直连。浏览器发出的数据,无论是 HTTP 还是 HTTPS,甚至其他 TCP,目标服务器都可以原样收到。

## 相关 - https://github.com/sivel/speedtest-cli - https://github.com/sivel/go-speedtest - http://www.speedtest.net/zh-Hans/about/knowledge/faq#top

## 相关链接 - [AWS GovCloud:Amazon把美国政府带至“云”上](https://36kr.com/p/40595.html) - [Timing breakdown phases explained](https://developers.google.com/web/tools/chrome-devtools/network-performance/reference#timing-explanation) - [地域和可用区](https://help.aliyun.com/document_detail/40654.html)

## 问题 - 仅提供了测试结果,测试结论得到的方法不知道,因为无法确定其准确性; - [x] 测试方法:**利用 dynamodb 的 ping 接口** - [x] 准确性:仅发起两次请求,第一次用于“解决HTTPS连接建立耗时问题”,第二次作为最终结果;可以认为**测试结果并不准确**; - 仅提供一次性测试结果,历史数据比较只能自己采样后对比; - 仅提供测试数据,没有关于距离的图示,没法直观感受距离和延迟之间的关联;

## 原理分析 - 运行一次测试的整体情况 ![image](https://user-images.githubusercontent.com/7439290/50205784-67a69100-03a4-11e9-9e2f-faadc9e30425.png) - 增加随机数并利用 404 resp 计算 latency 同一个 region 第一次测试 ![image](https://user-images.githubusercontent.com/7439290/50206030-1e0a7600-03a5-11e9-9e44-9acf947cd68e.png) ![image](https://user-images.githubusercontent.com/7439290/50206136-6f1a6a00-03a5-11e9-851d-1cae7d29b883.png) 同一个 region 第二次测试 ![image](https://user-images.githubusercontent.com/7439290/50206213-a8eb7080-03a5-11e9-8213-f01d512223cc.png) ![image](https://user-images.githubusercontent.com/7439290/50206270-d801e200-03a5-11e9-8dc0-5bae1f65bf4b.png) 两次测试的主要差别 ![image](https://user-images.githubusercontent.com/7439290/50206415-49da2b80-03a6-11e9-8d14-74c5ed05ce68.png) - 不加随机数的情况 直接访问 https://dynamodb.us-east-1.amazonaws.com/ping ![image](https://user-images.githubusercontent.com/7439290/50205873-be13cf80-03a4-11e9-9348-6fd5ac324388.png)

## [Timing breakdown phases explained](https://developers.google.com/web/tools/chrome-devtools/network-performance/reference#timing-explanation) Here's more information about each of the phases you may see in the Timing tab: - **Queueing**. The browser queues requests when: - There are...