Archive for the "技术-杂项" Category

12
7

Grade Your Website

Author: keys

Website Grader is a free seo tool that measures the marketing effectiveness of a website. It provides a score that incorporates things like website traffic, SEO, social popularity and other technical factors. It also provides some basic advice on how the website can be improved from a marketing perspective.

http://www.websitegrader.com/

7
7

本周花了不少时间研究HA集群,在忘记以前赶紧记录下来。 顺便鄙视一下redhatEL,不厚道, 搞了个yum但又不能用。

维持最长的系统正常运行时间对随需应变计算的成功来说越来越重要。不幸的是,很多现成即用(off-the-shelf)的高可用性(high availability,HA)解决方案 价格昂贵,而且需要专门的硬件。

本文介绍的是HA 服务的廉价替代方案--Heartbeat + DRBD + Linux实现一个双节点的高可用集群。假设该HA集群上提供的服务为apache和mysql. 当主节点出现故障时,自动的通过备份节点继续提供服务。

高可用性的概念
高可用性 是在系统、组件或者应用程序发生故障时快速恢复基本服务的系统管理策略。其目的是最大程度地减少服务中断,而不是容错。用来解决关键商务操作的系统执行故障的最常见解决方案是,使用另一个系统来等待并接管出故障的系统的负载,使商务操作继续进行下去。

HA集群构架

HA可以由两台数据同步的linux节点结成, 两个节点通过冗余的私有的物理连接进行数据同步和节点状态监视。

软件组件

  • Heartbeat

名为 High-Availability Linux 的开源项目的目标是,通过社区开发努力提供一个提升 Linux 可靠性(reliability)、 可用性(availability)和可服务性(serviceability)(RAS)的群集解决方案。Linux-HA 项目得到了广泛的应用,是很多有 趣的高可用性解决方案的重要组成部分。

heartbeat 是可以从 Linux-HA 项目 Web 站点公开获得的软件包之一。它提供了所有 HA 系统所需要的基本功能,比如 启动和停止资源、监测群集中系统的可用性、在群集中的节点间转移共享 IP 地址的所有者等。它通过串行线、以太网接口 或者同时使用二者来监测特定服务(或多个服务)的健康状况。当前版本支持两节点配置,使用专门的 heartbeat“pings”来检查 服务的状态和可用性。

  • DRBD

DRBD 是由LINUX内核模块和相关脚本而构成,用以构建高可用性的集群。其实现方式是通过网络来镜像整个设备。您可以把它看作是一种网络RAID. DRBD 负责接收数据,把数据写到本地磁盘,然后发送给另一个主机。另一个主机再将数据存到自己的磁盘中。

  • Linux 什么 ! 不知道是什么东东? 赶快去做几个俯卧撑吧。

硬件

两台普通x86架构的PC机,双网卡,交叉网线。 如果只是为了测试评估,可以使用虚拟机模拟。

待续。。。。。

28
6

Cluster introduction

Author: keys

A cluster is two or more computers (called nodes or members) that work together to perform a task. There are four major types of clusters:

  • Storage
  • High availability
  • Load balancing
  • High performance

Storage clusters provide a consistent file system image across servers in a cluster, allowing the servers to simultaneously read and write to a single shared file system. A storage cluster simplifies storage administration by limiting the installation and patching of applications to one file system. Also, with a cluster-wide file system, a storage cluster eliminates the need for redundant copies of application data and simplifies backup and disaster recovery.

High-availability clusters provide continuous availability of services by eliminating single points of failure and by failing over services from one cluster node to another in case a node becomes inoperative. Typically, services in a high-availability cluster read and write data (via read-write mounted file systems). Therefore, a high-availability cluster must maintain data integrity as one cluster node takes over control of a service from another cluster node. Node failures in a high-availability cluster are not visible from clients outside the cluster. (High-availability clusters are sometimes referred to as failover clusters.)

Load-balancing clusters dispatch network service requests to multiple cluster nodes to balance the request load among the cluster nodes. Load balancing provides cost-effective scalability because you can match the number of nodes according to load requirements. If a node in a load-balancing cluster becomes inoperative, the load-balancing software detects the failure and redirects requests to other cluster nodes. Node failures in a load-balancing cluster are not visible from clients outside the cluster.  LVS (Linux Virtual Server).

High-performance clusters use cluster nodes to perform concurrent calculations. A high-performance cluster allows applications to work in parallel, therefore enhancing the performance of the applications. (High performance clusters are also referred to as computational clusters or grid computing.)

7
6

Amazon Simple Storage Service (Amazon S3)

简单的读写功能, 比自己搭建大型的数据仓库便宜的多, 在项目还处于prove concept期间, 用这个方案即稳定, 又大大节约硬件和软件成本. 而且有很多现成的api来wrap这个S3服务, 用起来很是方便, 每个月10G的流量才1$左右. 只可惜, 目前只有US和EUR的服务器, 中国用用的话不知道速度几何?

这种online大容量存储(又叫存储服务网络)应该是个趋势, 在未来网络大一统时代, 肯定需要枪毙目前各自为政的小DB们. 应该是超级大计算机集群扮演现在的大小server.

25
5

写好一篇博客,当然是迫不及待地想和别人分享一下。有一种方法,能够自动将你最新的博客摘要发送到各大博客网站,或者让Google在第一时间收录你的大作, 这种方法就是Ping Service。Ping Service最早由WEBBLOGS.COM提出, 其目的就是为博客程序提供一种通知机制,以便在第一时间将博客的更新信息发布到提供Ping Service服务的网站。现在,Ping Service已经被各大主流博客系统所采用,并发挥着越来越重要的作用。

去WEBBLOGS.COM的主页http://weblogs.com/home.html看看吧,在“Recently Updated Weblogs…”里,你会很直观地发现平均每分钟都有数十甚至上百个各种语言的博客更新。你的博客网站不能Ping?那么,你落后了!这将直接影响到你的博客访问量,还有你的ADSenses收益哦!
从技术上说,Ping Service是一个基于XML-RPC机制的WEB调用接口,一个网站或者博客程序只要能支持这个接口,就可以实现Ping Service的功能。下面列出的是一些常见的支持Ping Service的网站:
国外:
http://rpc.weblogs.com/RPC2
http://blogsearch.google.com/ping/RPC2
http://rpc.pingomatic.com/rpc2
国内:
http://www.feedsky.com/api/rpc2
http://www.xianguo.com/xmlrpc/ping.php
提供Ping Service的网站还有很多,但实际上很多小的博客聚合网站都会去Weblogs、Google这样的大站下载最新的博客更新,所以你只需要Ping几个主要的站点就行了。借用一位BLOG技术前辈的话:既然Ping一个网站就能达到同样的效果,你为什么还要去Ping15个呢?

18
5

局域网里,访问另一台机器,因为没开Guest用户,会弹出个对话框,提示输入用户密码。可是密码输错了,而且勾上了记忆密码。结果无法访问。想再次点击目标机器,就直接提示“你无权访问。
解决方法:
control userpasswords 或者 control userpasswords ,然后在管理网络密码中,修改已经保存的密码或者删除。

17
2

copy-cat again

Author: keys

中国人又把别人的东西拿来包装一下, 自己卖钱
http://www.web3dchina.com
其实就是下面的产品而已
http://www.demicron.com

买鬼子产品, 包装一下, 进口到中国来卖, 还是比较爽的啊

13
2

zend 注册码

Author: 乌鱼

用户名:PHPER
注册码:4784D9D0086669570000