1. snapshot overview
对openstack而言,虚拟机的快照即是镜像,快照做完后以镜像形式存于glance。虽然openstack的快照是基于libvirt(qemu-kvm),但是二者在实现上有很大区别:
libvirt 主流快照实现: 采用virDomainSnapshotCreateXML()函数(CLI为virsh snapshot-create)。 新建...
分类:
其他好文 时间:
2014-08-13 01:22:54
阅读次数:
387
class Edge { enum Type { inner, outer, flat } Piece parent; Type type; boolean fitsWith(Edge type) { }; // Inners & outer f...
分类:
其他好文 时间:
2014-08-12 06:51:13
阅读次数:
208
Solution:Apparently, I am too naive and I think too few. Here's the detailed solution.What is our chat server?This is something you should discuss wit...
分类:
其他好文 时间:
2014-08-12 05:53:23
阅读次数:
210
package card;public class Game implements Runnable{ int numPlayers; int startNumber; //players and hands seperate so players can't change the...
分类:
其他好文 时间:
2014-08-12 03:12:34
阅读次数:
285
当前使用的redis版本 #redis-cli -v
redis-cli 2.6.4 MULTI 、EXEC 、DISCARD 和WATCH 是 Redis 事务的基础 1.MULTI? 命令用于开启一个事务,它总是返回 OK 。 MULTI 执行之后,客户端可以继续向服务器发送任意...
分类:
其他好文 时间:
2014-08-12 00:54:03
阅读次数:
268
设计高可用的应用是架构师的一个重要目标,可是基于云计算平台设计高可用应用与基于传统平台的设计有很多不同。云计算在给架构师带来了很多新的设计挑战的时候,也给带来了很多新的设计理念和可用的服务。怎样在设计应用的时候充分利用云平台的各种特点是基于云计算设计的一个重要条件。在这个在线讲座中,我们将以亚马逊A...
分类:
其他好文 时间:
2014-08-11 20:53:22
阅读次数:
307
进入php5文件夹下:cd /etc/php5/apache2#根据你当时的配置选择,比如之前配置是apache2就进入apache2,如果是cli就进入cli文件夹下打开php.ini文件sudo gedit php.ini查找upload找到如下这一行:upload_max_filesize =...
分类:
数据库 时间:
2014-08-11 14:45:22
阅读次数:
246
http://www.geeksforgeeks.org/amazon-interview-set-105-campus/First PI:1. A brief discussion on my projects that I have done .2. One thing that I am mo...
分类:
其他好文 时间:
2014-08-10 15:35:10
阅读次数:
302
Round 1(Bar Raiser):Complete discussion on my project.Suppose you have a file with billion entries and you have to sort the data of a file according t...
分类:
其他好文 时间:
2014-08-10 08:07:59
阅读次数:
191
Hive架构1)用户接口: CLI(hive shell):命令行工具;启动方式:hive 或者 hive --service cli ThriftServer:通过Thrift对外提供服务,默认端口是10000;启动方式:hive --service hiveserver WEBUI(浏览器...
分类:
其他好文 时间:
2014-08-10 01:27:29
阅读次数:
467