Category: Uncategorized


Vì cần test thử xem insert speed của Database Mysql là chịu được mức bao nhiêu  cần cho việc insert data với rate cao.Server cài Mysql-5.5.11.1: down trên trang mysql.com

MySQL-server-5.5.11-1.rhel5
MySQL-shared-5.5.11-1.rhel5
MySQL-devel-5.5.11-1.rhel5
MySQL-client-5.5.11-1.rhel5
MySQL-embedded-5.5.11-1.rhel5

1.DB server và Client cấu hình tương tự nhau: chỉ mượn lab test toàn server thanh lý.
IBM Bladecenter HS20 
CPU Intel(R) Xeon(TM) CPU 3.20GHz 
RAM 4GB 
HDD SCSI 36GB 

2.Để gởi data tới server mình viết chương trình insert vào mysql sử dụng multithread và dùng 2 driver:
+ lib chuẩn của mysql: mysql-connector-java-5.0.8-bin.jar
+ lib của HSclient : hs4j-0.1.jar

3.Cấu trúc của table insert data:

log_2011

Field Type Null Default Comments
pid varchar(64) No
datetime varchar(50) Yes NULL
ID varchar(50) No
value char(10) Yes NULL
Result varchar(250) Yes NULL
Name char(10) Yes NULL
roleId char(10) Yes NULL
Time varchar(50) Yes NULL
duration float Yes NULL
 4.Kết quả test: cả 2 client đều tạo 12 thread và gởi liên tục tới server
a.Dùng mysql-connector-java-5.0.8-bin.jar
Server load:
Status  server  khi dung jdbc-mysql 
Rate insert:cao nhất là 12922 query/s
Rate insert  jdbc-mysql 
b.Dùng lib HSclient:
Server load:
Statu server voi lib hs4j 
Rate insert: 13079 query/s
Rate insert lib hs4j 

Cả hai trường hợp ta nhận thấy:

  • Lib chuẩn của mysql: thì CPU khá cao > 170% chỉ để insert 12000 query/s
  • Lib của hs4j: với tốc độ lớn hơn 1 chút là 13000 query/s và CPU load chỉ tầm 60-70%.Vậy hệ

thống vẫn có thể handle thêm request

  • Quyết định thêm server client vào để load test xem tốc độ như thế nào?Kết quả là 

26000 query/s với 4 client gởi data liên tục.

Lâu rồi chưa viết gì cả qua nhà mới hy vọng có nhiều cái mới

Happy New Year for everyone

Each virtual machine created with VMware Workstation 
provides a platform that includes the following devices that your guest
operating system can see.

·  Processor

·  Chip
Set

·  BIOS

·  Memory

·  Graphics

·  IDE
Drives

·  SCSI
Devices

·  Floppy
Drives

·  Serial
(COM) Ports

·  Parallel
(LPT) Ports

·  USB
ports

·  Keyboard

·  Mouse
and Drawing Tablets

·  Ethernet
Card

·  Sound

·  Virtual
Networking

Processor

·  Same processor as that on host computer

·  One virtual processor on a host with one or
more logical processors

·  Two virtual processors (two-way virtual
symmetric multiprocessing, or Virtual SMP) on a host with at least two logical
processors.

Note: The following are all considered to have
two logical processors:

·  A single-processor host with hyperthreading
enabled

·  A single-processor host with a dual-core CPU

·  A multiprocessor host with two CPUs, neither
of which are dual-core or have hyperthreading enabled

See Using
Two-Way Virtual Symmetric Multiprocessing (Experimental)
.

Chip Set

·  Intel 440BX-based motherboard

·  NS338 SIO

·  82093AA IOAPIC

BIOS

·  PhoenixBIOS™ 4.0 Release 6 with VESA BIOS

Memory

·  Up to 3.6GB, depending on host memory

·  Maximum of 4GB total available for all
virtual machines

Graphics

·  VGA and SVGA support

IDE Drives

·  Up to four devices — disks, CD-ROM or DVD-ROM
(DVD drives can be used to read data DVD-ROM discs; DVD video is not supported)

·  Hard disks can be virtual disks or physical
disks

·  IDE virtual disks up to 950GB

·  CD-ROM can be a physical device or an ISO
image file

SCSI Devices

·  Up to seven devices

·  SCSI virtual disks up to 950GB

·  Hard disks can be virtual disks or physical
disks

·  Generic SCSI support allows devices to be
used without need for drivers in the host operating system. Works with
scanners, CD-ROM, DVD-ROM, tape drives and other SCSI devices

·  LSI Logic� LSI53C10xx Ultra320 SCSI
I/O controller

·  Mylex� (BusLogic) BT-958
compatible host bus adapter (requires add-on driver from VMware for Windows XP
and Windows Server 2003)

Floppy Drives

·  Up to two 1.44MB floppy devices

·  Physical drives or floppy image files

Serial (COM) Ports

·  Up to four serial (COM) ports

·  Output to serial ports, Windows or Linux
files, or named pipes

Parallel (LPT) Ports

·  Up to three bidirectional parallel (LPT)
ports

·  Output to parallel ports or host operating
system files

USB ports

·  Two-port USB 1.1 UHCI controller

·  Supports most devices including USB printers,
scanners, PDAs, hard disk drives, memory card readers and digital cameras, as
well as streaming devices such as webcams, speakers, and microphones.

Keyboard

·  104-key Windows 95/98 enhanced

Mouse and Drawing Tablets

·  PS/2 mouse

·  Serial tablets supported

Ethernet Card

·  Up to three virtual Ethernet cards

·  AMD PCnet-PCI II compatible

·  For 64-bit guests: Intel Pro/1000 MT Server
Adapter compatible

Sound

·  Sound output and input

·  Emulates Creative Labs Sound Blaster AudioPCI
(MIDI input, game controllers and joysticks
are not supported, except for USB devices)

Virtual Networking

·  Support for nine or more virtual Ethernet
switches, depending on the host operating system. Three switches are configured
by default for bridged, host-only, and NAT networking.

·  Support for most Ethernet-based protocols,
including TCP/IP, NetBEUI, Microsoft Networking, Samba, Novell Netware, and
Network File System.

·  Built-in NAT supports client software using
TCP/IP, FTP, DNS, HTTP, and Telnet, including VPN support for PPTP over NAT.

Virtualization technologies offer new ways to transform your IT
environment into a system that is more dynamic and cost effective. With
the Microsoft end-to-end virtualization platform, you can improve
nearly every aspect of the IT infrastructure management lifecycle. The
process to license Microsoft products for a virtual computing
environment is essentially the same as it is for a physical
environment, and our licensing models can help you take advantage of
the benefits of virtualization.
Learn more about Microsoft Virtualization

In
addition, we have included some unique license rights for certain
products that support virtualization so that you can take advantage of
existing and future virtualization technologies across the complete
Microsoft virtualization platform—including desktops, applications,
servers, and management. Examples include the following.

Windows Server 2008 Enterprise
This license allows you to run up to four software instances at a time
in virtual operating system environments (OSEs) on a server under a
single server license.

Windows Server 2008 Datacenter
This license allows you to run any number of software instances in physical and virtual OSEs on a server.

Microsoft SQL Server 2008 Enterprise Edition
This license allows you to run any number of software instances in one
physical server
and any number of virtual OSEs on the server.

Windows Vista Enterprise Centralized Desktop (VECD)
This is a flexible, subscription-based licensing option for enterprise
customers and early adopters who want to deploy Windows Vista in
virtual OSEs that are running on servers. Each VECD license allows one
user to access up to four concurrently-running instances.

System Center Server Management Suite Enterprise (SMSE)
This is a comprehensive solution for server application and platform
management across physical and virtual server environments. Along with
other System Center products, it includes Virtual Machine Manager. One
SMSE license
allows you to manage the physical OSE and any number of
virtual OSEs
on a server.

Microsoft Desktop Optimization Pack (MDOP) for Software Assurance
This is a dynamic desktop solution designed to increase Windows desktop
manageability and reduce system complexity. MDOP offers a suite of
technologies that can help reduce application management costs,
instantly deliver virtualized applications (via Microsoft Application
Virtualization for Desktops, formerly SoftGrid), and better control
desktop environments, enhancing IT responsiveness and user uptime.

Các công nghệ mà google áp dụng cho hệ thống của mình luôn là một điều thú vị đối với dân IT,qua clip dưới đây ta sẽ hiểu được phần nào các công nghệ mà google đang áp dụng:



In Firefox’s Help menu choose Check for Updates to download Firefox 3.0.1, a minor
update that fixes Firefox 3’s most common causes of crashes. This update
won’t shouldn’t cause any add-on incompatibilities (but apparently
does here and there according to commenters).
This is a setup ISO of Microsoft Windows Server 2008 x64.

All editions included (Standard, Enterprise, Datacenter) and all
offered with and without Hyper-V (so 6 choices at install screen).

Temporarily Bypass Windows Server 2008 Activation:

http://www.petri.co.il/bypass-windows-server-2008-activation.htm

Solution to get it bootable:

Download latest vLite: http://nlite.boot-land.net/vlite/vLite-1.1.1.installer.exe

Copy contents of "Windows.Server.2008.x64.iso" to a folder.

Open vLite. Browse to folder with ISO contents (windows installation files).

A screen will pop up with 6 choices, choose whether you want
Standard, Enterprise, Datacenter, with or w/o Hyper-V (CORE is without)

Click Next. At task selection screen ONLY select "Bootable ISO"

Click Next. At bottom right, click "Make ISO". Save it to disk.

You now have a bootable copy of Server 2008 x64.
Download windows server 2008

SAN FRANCISCO (MarketWatch) VMware Inc. hồi tháng 8 đã đem đến cho
cộng đồng công nghệ ảo hóa và mang về cho công ty một sự khởi đầu sớm
và rộng lớn trong thị trường này.

Nhưng vào ngày 12-12 VMware đã thoáng thấy sự cạnh
tranh sẽ như thế nào khi Microsoft Corp. giới thiệu Hyper-V bản beta
của công nghệ ảo hóa phần mềm trước đây có tên là Veridien.

Sự xuất hiện lần đầu tiên của Hyper-V là sớm hơn dự
đoán của các chuyên gia phân tích công nghệ và nó đem lại cho người
khổng lồ phần mềm khả năng phát hành bản chính thức của công nghệ ảo
hóa này vào nửa đầu năm 2008.

Ảo hóa là công nghệ cho phép các ứng dụng và hệ điều
hành độc lập với phần cứng và có thể chia sẻ qua các máy chủ và hệ
thống lưu trữ. Các doanh nghiệp sau đó sẽ sử dụng công nghệ ảo hóa để
quản lí tốt hơn các dữ liệu dùng chung lớn mà không cần thêm nhiều các
hệ thống phần cứng.

Công nghệ này trở thành đề tài nóng bỏng trong năm nay khi EMC Corp. góp vốn 10% vào VMware.

Trong khi VMware được xem là người dẫn đầu về ảo hóa
và đã nhiều năm vượt qua các đối thủ cạnh tranh, sự bắt đầu của
Microsoft được xem như một điều không thể ngó lơ, dù cho sẽ mất một năm
hay lâu hơn nữa Microsoft mới chiếm bớt thị phần của VMware một cách rõ
ràng.

Brent Thill nhà phân tích của Citigroup nói rằng vì
Hyper-V sẽ là một tính năng của hệ điều hành Windows Server 2008 được
phát hành trong năm tới, nên Microsoft sẽ có một vài “lợi thế sân nhà”
trên thị trường.

Những lợi thế đó bao gồm thực tế rằng 67% trung tâm
dữ liệu đang chạy hệ điều hành Windows Server của Microsoft và những
khách hàng đó đang hài lòng với các sản phẩm của Microsoft.

Tham khảo từ TinTheGioi

OpenVPN is a newer and an outstanding VPN solution. It implements Layer 2 or Layer 3 connections, uses the industry standard SSL/TLS for encryption, and combines almost all features of the mentioned VPN solutions. Its main disadvantage is the fact that there are still few hardware manufacturers integrating it in their solutions. 

OpenVPN Version 1
OpenVPN entered the scene of VPN solutions only on May 13, 2001 with an initial release that could barely tunnel IP packets over UDP and only encrypt with Blowfish cipher and SHA HMAC signatures (rather secure encryption and signing methods). This version was already numbered 0.90—which seems ambitious, since only one version (0.91) followed in 2001, offering extended encryption support. For SSL/TLS support, users would have to wait almost one year after the first release. Version 1.0 was released in March 2002 and provided SSL/TLS-based authentication and key exchange. This version was also the first to contain documentation in form of a manpage.
Then, OpenVPN development picked up speed. Only five days later, version 1.0.2 was released, which was the first version with adaptations for Redhat Package Manager (RPM)-based systems. From this version on, releases were published almost regularly every four to eight weeks. 
The following table gives an overview of the releases and lists the dates and versions when certain selected features were added to the 1.x version of OpenVPN. More details can be found in the Changelog sections of the OpenVPN website at http://openvpn.net/changelog.html and release notes at http://openvpn.net/relnotes.html.

OpenVPN Version 2
Parallel to the improvement and development of OpenVPN version 1, the test bed for OpenVPN version 2 was made in November 2003, and in February 2004, version 2.0-test3 initially prepared the goal of a multi-client server for OpenVPN. This multi-client server is one of the most outstanding features of OpenVPN today; several clients can connect to the VPN server on the same port. On February 22, 2004, the two development branches 1.6-beta7 and 2.0-test3 were merged and further development was continued in version 2’s branch.
There were fewer than 29 versions labeled as "test" versions, 20 beta versions, and 21 release candidates, until on April 17, 2005, OpenVPN version 2.0 could be released. This was only possible because of the great number of developers contributing to the project, fixing bugs, and improving performance and stability permanently.
The following list will give a brief overview of the new features added to OpenVPN version 2:
• Multi-client support: OpenVPN offers a special connection mode, where TLS- authenticated clients (that are not blacklisted on the CRL) are provided in DHCP- style with IPs and networking (tunnel) data. This way, several tunnels (up to 128) can communicate over the same TCP or UDP port. Obviously, a mode control switch for activating server mode became necessary. 
• Push/pull options: The Network setup of clients can be controlled by the server. After successful setup of a tunnel, the server can tell the client (both Windows and Linux) to use a different network setup instantaneously.
• A management interface (Telnet) is added.
• The Windows driver and software have been improved widely.