openstack ovs-gre 网速慢解决方案
Hint: if you want to check if this answer will solve your issue, execute ifconfig eth0 mtu 1400 on the instance and check the speed.
Edit the file: /etc/quantum/dhcp_agent.ini and set:
dnsmasq_config_file=/etc/neutron/dnsmasq-neutron.conf
Create and edit file /etc/neutron/dnsmasq-neutron.conf and put this inside:
dhcp-option-force=26,1400
Restart DHCP:
service neutron-dhcp-agent restart
And reboot your instance. Verify that your MTU is 1400:
root@web:~# ifconfig eth0 Link encap:Ethernet HWaddr fa:16:3e:f0:6a:9f
inet addr:10.1.0.2 Bcast:10.1.0.255 Mask:255.255.255.0 inet6 addr: fe80::f816:3eff:fef0:6a9f/64 Scope:Link UP BROADCAST RUNNING MULTICASTMTU:1400 Metric:1 RX packets:934855 errors:0 dropped:0 overruns:0 frame:0 TX packets:207741 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1210256390 (1.2 GB) TX bytes:226172592 (226.1 MB)
Test upload speed again. It should be back to normal.
亲测可行。
MTU&GRE
新的数据报头长度为20字节,GRE最小封闭字节为4字节,1500-20-4=1476,而我们的实例默认是1480,必然每个包都自动分片,导致性能下降。
ref:https://ask.openstack.org/en/question/6140/quantum-neutron-gre-slow-performance/
最新文章
- O365(世纪互联)SharePoint 之调查列表简单介绍
- Linux下使用FreeTDS访问MS SQL Server 2005数据库(包含C测试源码)
- gradle基础的build文件模板_tomcat
- 封装pyMysql
- WIN10 新建ORACLE实例
- rsa加密--选择padding模式需要注意的问题。。。
- oracle中的cluster表
- 使用.9.png报错 Exception raised during rendering
- Python伪开发者对于搜狐云景的测评
- mysql23个知识点
- jquery生成二维码
- java项目打jar包
- thinkphp学习笔记10—看不懂的路由规则
- 邮件实现详解(四)------JavaMail 发送(带图片和附件)和接收邮件
- DevPress GridControl的使用
- Win10环境下 HTTP 错误 500.19 - Internal Server Error 问题及其解决方法
- DNS搭建
- SpringMVC使用Hession发布远程服务
- vue-6-事件处理
- 解决警告 warning: directory not found for option
热门文章
- Android 学习开发笔记《Android认识》
- 基于Win7 Python2.7的Numpy安装包分享
- poj 1604 Just the Facts
- java 语法 java没学好,休想学好安卓!
- redis缓存工具Jedis进行跨jvm加锁(分布式应用)--不幸暂弃用--能够做第三方锁使用
- spring mvc 和ajax异步交互完整实例
- A shallow summary of oracle log miner
- partial_sort_百度百科
- Android中如何查看内存(下)
- IOS的处理touch事件处理(按照手指的移动移动一个圆,开发环境用的ios7,storyboard)