首页 文章 精选 留言 我的

精选列表

搜索[openstack],共3159篇文章
优秀的个人博客,低调大师

openstack Mysql 1040, 'Too many connections' 问题

[root@athController ~]# nova list ERROR: An unexpected error prevented the server from fulfilling your request. (OperationalError) (1040, 'Too many connections') None None (HTTP 500) 解决办法: key_buffer = 64M max_allowed_packet = 16M thread_stack = 192K thread_cache_size = 8 myisam-recover = BACKUP query_cache_limit = 1M query_cache_size = 64M log_error = /var/log/mysqld.log expire_logs_days = 10 max_binlog_size = 100M max_connections = 1000 [root@athController ~]# nova list +--------------------------------------+---------------------------------------------------+--------+------------+-------------+-----------------------------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+---------------------------------------------------+--------+------------+-------------+-----------------------------------------+ | d4965275-f152-482c-9669-a54c90e0ec9b | 2222 | ACTIVE | - | Running | publics=10.14.22.21; private=10.14.8.21 | | 966aee59-3b6c-44b5-bccb-ee671dd8b999 | 3-windows-cn-966aee59-3b6c-44b5-bccb-ee671dd8b999 | ACTIVE | - | Running | publics=10.14.22.5; private=10.14.8.6 | | da60e9f7-009a-43c0-bf69-7999692d81ed | 333-da60e9f7-009a-43c0-bf69-7999692d81ed | ACTIVE | - | Running | publics=10.14.22.8; private=10.14.8.8 | | b936d13d-d28a-45b7-880e-dfadac17f0b9 | 3333 | ACTIVE | - | Running | publics=10.14.22.11; private=10.14.8.11 | | 08f5e6c2-d49a-4ded-a901-7bc21d474b2a | ASF | ACTIVE | - | Running | publics=10.14.22.9; private=10.14.8.9 | 本文转自 swq499809608 51CTO博客,原文链接:http://blog.51cto.com/swq499809608/1542315

优秀的个人博客,低调大师

openstack G Version about snapshot , create ,delete

def create_snapshot(disk_path, snapshot_name): """Create a snapshot in a disk image :param disk_path: Path to disk image :param snapshot_name: Name of snapshot in disk image """ qemu_img_cmd = ('qemu-img', 'snapshot', '-c', snapshot_name, disk_path) # NOTE(vish): libvirt changes ownership of images execute(*qemu_img_cmd, run_as_root=True) def delete_snapshot(disk_path, snapshot_name): """Create a snapshot in a disk image :param disk_path: Path to disk image :param snapshot_name: Name of snapshot in disk image """ qemu_img_cmd = ('qemu-img', 'snapshot', '-d', snapshot_name, disk_path) # NOTE(vish): libvirt changes ownership of images execute(*qemu_img_cmd, run_as_root=True) def extract_snapshot(disk_path, source_fmt, snapshot_name, out_path, dest_fmt): """Extract a named snapshot from a disk image :param disk_path: Path to disk image :param snapshot_name: Name of snapshot in disk image :param out_path: Desired path of extracted snapshot """ # NOTE(markmc): ISO is just raw to qemu-img if dest_fmt == 'iso': dest_fmt = 'raw' qemu_img_cmd = ('qemu-img', 'convert', '-f', source_fmt, '-O', dest_fmt) # Conditionally enable compression of snapshots. if CONF.libvirt_snapshot_compression and dest_fmt == "qcow2": qemu_img_cmd += ('-c',) # When snapshot name is omitted we do a basic convert, which # is used by live snapshots. if snapshot_name is not None: qemu_img_cmd += ('-s', snapshot_name) qemu_img_cmd += (disk_path, out_path) execute(*qemu_img_cmd) waring: execute subprocess.Popen('',shell=True) 本文转自 swq499809608 51CTO博客,原文链接:http://blog.51cto.com/swq499809608/1214702

优秀的个人博客,低调大师

OpenStack Juno系列之网络节点搭建

OpenStackJuno系列之网络节点搭建 neutron节点搭建 ------------------ 添加转发 vi/etc/sysctl.conf net.ipv4.ip_forward=1 net.ipv4.conf.all.rp_filter=0 net.ipv4.conf.default.rp_filter=0 刷新下 sysctl-p 安装neutron各模块服务 apt-getinstallneutron-plugin-ml2neutron-plugin-openvswitch-agent\ neutron-l3-agentneutron-dhcp-agent 编辑配置文件 vi/etc/neutron/neutron.conf [DEFAULT] verbose=True rpc_backend=rabbit rabbit_host=controller rabbit_password=RABBIT_PASS core_plugin=ml2 service_plugins=router allow_overlapping_ips=True auth_strategy=keystone [keystone_authtoken] auth_uri=http://controller:5000/v2.0 identity_uri=http://controller:35357 admin_tenant_name=service admin_user=neutron admin_password=NEUTRON_PASS 编辑ml2配置文件 vi/etc/neutron/plugins/ml2/ml2_conf.ini [ml2] type_drivers=flat,gre tenant_network_types=gre mechanism_drivers=openvswitch [ml2_type_flat] flat_networks=external [ml2_type_gre] tunnel_id_ranges=1:1000 [securitygroup] enable_security_group=True enable_ipset=True firewall_driver=neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver [ovs] local_ip=INSTANCE_TUNNELS_INTERFACE_IP_ADDRESS tunnel_type=gre enable_tunneling=True bridge_mappings=external:br-ex ToconfiguretheLayer-3(L3)agent: vi/etc/neutron/l3_agent.ini [DEFAULT] verbose=True interface_driver=neutron.agent.linux.interface.OVSInterfaceDriver use_namespaces=True external_network_bridge=br-ex ToconfiguretheDHCPagent: vi/etc/neutron/dhcp_agent.ini [DEFAULT] verbose=True interface_driver=neutron.agent.linux.interface.OVSInterfaceDriver dhcp_driver=neutron.agent.linux.dhcp.Dnsmasq use_namespaces=True dnsmasq_config_file=/etc/neutron/dnsmasq-neutron.conf vi/etc/neutron/dnsmasq-neutron.conf dhcp-option-force=26,1454 #pkilldnsmasq Toconfigurethemetadataagent: vi/etc/neutron/metadata_agent.ini [DEFAULT] verbose=True nova_metadata_ip=controller auth_url=http://controller:5000/v2.0 auth_region=regionOne admin_tenant_name=service admin_user=neutron admin_password=NEUTRON_PASS metadata_proxy_shared_secret=METADATA_SECRET 到控制节点上编辑 vi/etc/nova/nova.conf [neutron] service_metadata_proxy=True metadata_proxy_shared_secret=METADATA_SECRET 重启服务 servicenova-apirestart 回到neutron节点上: 配置OVS,重启服务 serviceopenvswitch-switchrestart ovs-vsctladd-brbr-ex ovs-vsctladd-portbr-exINTERFACE_NAME ethtool-KINTERFACE_NAMEgrooff 重启服务 serviceneutron-plugin-openvswitch-agentrestart serviceneutron-l3-agentrestart serviceneutron-dhcp-agentrestart serviceneutron-metadata-agentrestart 本文转自Devin 51CTO博客,原文链接:http://blog.51cto.com/devingeng/1582324

资源下载

更多资源
Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

腾讯云软件源

腾讯云软件源

为解决软件依赖安装时官方源访问速度慢的问题,腾讯云为一些软件搭建了缓存服务。您可以通过使用腾讯云软件源站来提升依赖包的安装速度。为了方便用户自由搭建服务架构,目前腾讯云软件源站支持公网访问和内网访问。

Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Spring

Spring

Spring框架(Spring Framework)是由Rod Johnson于2002年提出的开源Java企业级应用框架,旨在通过使用JavaBean替代传统EJB实现方式降低企业级编程开发的复杂性。该框架基于简单性、可测试性和松耦合性设计理念,提供核心容器、应用上下文、数据访问集成等模块,支持整合Hibernate、Struts等第三方框架,其适用范围不仅限于服务器端开发,绝大多数Java应用均可从中受益。

用户登录
用户注册