存档

‘云计算’ 分类的存档

KVM&OpenVZ虚拟化和使用Proxmox VE进行云计算

2009年11月3日 没有评论

Proxmox VE 是一个基于Debian Etch (x86_64) 版本的虚拟环境;它提供了一个可运行OpenVZ和KVM虚拟机的开源虚拟化平台。同时,其拥有一个强大的基于web界面的控制面板(这个控制面板包含了一个web化的图形控制终端,你可以通过这个终端,连接并使用虚拟机。 使用Proxmox VE,你甚至可以通过控制面板创建虚拟主机集群,并且在远程的主机上创建和控制虚拟机。Proxmox VE,同时也支持把一个运行的虚拟机从一个主机中镜像到另一个。这个教程将向你展示如何使用Proxmox VE控制KVM和OpenVZ虚拟机,和怎样通过Proxmox VE创建一个小的计算机云。

我不能保证这篇文章对你完全有效。

阅读全文…

鞋衫各式名品专卖

收藏与分享

[ubuntu]安装vmware时找不到c header files的小问题

2009年11月1日 没有评论

授权方式:署名,非商业用途,保持一致,转载时请务必以超链接(http://blog.thematice.com/html/y2009/11/01/798_ubuntu-install-vmware-not-foundc-header-files-qa.html)的形式标明文章原始出处和作者信息及本声明。

很多人都是用xp作主系统,然后用vmware虚拟一个linux学习,我现在的做法却恰恰相反,我用ubuntu作主系统,然后虚拟一个xp用于工作 :)

vmware下载和安装就不说了,安装完成之后,运行vmware-config.pl的时候,会有一步是询问内核的头文件在哪里:

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

阅读全文…

收藏与分享

yahoo 的 traffic server YTS 释出源码了

2009年11月1日 17 条评论

yahoo 的YTS释出源码了
马上下载编译到vmware上面瞧瞧..
方法很简单…
先安装devel库文件避免编译出问题.
TS编译使用了ccache加快编译的速度…好东西自然要下载之…
还有编译的时候碰见了一个错误.libinktomi++/Regression.cc
193行在 2009/10/31 23:55:23 替换成 831621版本号
原始版本是2009/10/29 23:01:48 831143版本号
我不知道dev为何做这样的改动….不管只要可以使用不影响我的编译…

开始更新系统编译环境…

?Download shell.sh
1
2
3
yum install gcc-c glibc-devel db4-devel openssl-devel tcl-devel expat-devel 
#yum install -y gcc44  gcc44-c++  gcc44-gfortran  libgcc subversion
yum update -y

阅读全文…

简单生活。简单运动

收藏与分享
分类: cdn, squid, YTS, 云计算 标签: , , , ,

erlang网络编程的几个性能调优和注意点

2009年10月25日 没有评论

前些天给echo_server写了个非常简单的连接压力测试程序,

代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
-module(stress_test).   
 
-export([start/0, tests/1]).   
 
start() ->   
    tests(12345).   
 
tests(Port) ->   
    io:format("starting~n"),   
    spawn(fun() -> test(Port) end),   
    spawn(fun() -> test(Port) end),   
    spawn(fun() -> test(Port) end),   
    spawn(fun() -> test(Port) end).   
 
test(Port) ->   
     case gen_tcp:connect("192.168.0.217", Port, [binary,{packet, 0}]) of   
    {ok, _} ->   
            test(Port);   
    _ ->   
        test(Port)   
    end.

阅读全文…

收藏与分享
分类: erlang, 云计算 标签: , , ,

今天把简单的OPENVZ和HYPERVM的安装过程写一个,留下做个记号!

2009年10月24日 没有评论

今天把简单的OPENVZ和HYPERVM的安装过程写一个,留下做个记号!

系统:CentOS 5.1 for vmware6.0
系统安装就不说了,选最简单的安装就行,还有把防火墙,SELinux关闭就了!
[root@localhost ~]# uname -r
2.6.18-53.el5
[root@localhost ~]# cat /boot/grub/menu.lst
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
阅读全文…
收藏与分享

whois3获取电信,网通,铁通等ip地址分配

2009年10月24日 没有评论

APNIC是管理亚太地区IP地址分配的机构,它有着丰富准确的IP地址分配库,同时这些信息也是对外公开的!下面就让我们看看如何在 Linux下获得一些电信运营商的IP地址分配情况:有时搞一些跨网段的工程和应用,需要尽量准确的知道电信、网通、铁通等电信运营商的IP地址段分配情况.

ftp://ftp.apnic.net/apnic/dbase/tools/

找到最新的whois版本,如:ripe-dbase-client-v3.tar.gz下载
第一步:
阅读全文…

收藏与分享

Xmemcached 1.2.0-RC2 released

2009年9月19日 没有评论

XMemcached 1.2.0-RC2 released,main highlights:

1、支持Kestrel。Kestrel是一个scala编写的简单高效的MQ,它是Twitter发布的开源产品,支持memcached协议,但并不完全兼容。更多信息看这里。Xmemcached提供了一个KestrelCommandFactory,用于对kestrel特性的支持。
阅读全文…

收藏与分享

memcached: Benchmark of 4 Python libraries

2009年9月19日 没有评论

memcached: Benchmark of 4 Python libraries

Memcached speed

Optimizations, don’t we just love them! Unfortunately most micro optimizations aren’t worth doing. The optimizations that are worth doing are those that affect everything… And if you use memcached, then memcached affects everything ;-) In this blog post I present a benchmark of 4 most popular Python memcached libraries (one of them pure Python, the 3 others C wrappers).

As my benchmark shows, there are lots of gains, basically you can speed up your memcached operations by 2x times – which is REALLY hard to do with any other optimization.

There are currently 4 Python memcached libraries and there aren’t any good benchmarks of these, so I have set a goal to benchmark these. The candidates:

阅读全文…

收藏与分享

TORNADO – THE FASTEST WSGI SERVER?

2009年9月19日 没有评论

Tornado – The fastest WSGI server?

Posted on 13. Sep
· Comments [5]
Tornado Python

Tornado is a non-blocking web server from the FriendFeed hackers. There are different hello world benchmarks, but none that are really interesting to me since all of my web-applications are WSGI applications.

阅读全文…

收藏与分享
分类: Linux web, 云计算 标签: , ,

Facebook把FriendFeed的实时技术开源

2009年9月19日 没有评论

screen-shot-2009-09-10-at-104121-am-630x212

昨天Facebook推出了Tornado,一项实时互联网架构技术。Facebook的开源社区负责人Dave Recordon说:
阅读全文…

收藏与分享
分类: 云计算 标签: , ,