`
zhangziyangup
  • 浏览: 1186604 次
文章分类
社区版块
存档分类
最新评论

数据库硬件选择

 
阅读更多
虽然大家使用的数据库可能不一样,但是整体的思路都是一样的。下面的文章对于选择数据库硬件有指导意义:

So you need to purchase a new database server, and you really don’t know where to start..

Because their maybe different recommendations for different OS’s I am going to stick with Linux with these recommendations. I want to say right off the bat here… choosing the right hardware should probably not be a five minute task. I think you really need to spend time reviewing your application, it’s access patterns, the io capacity, etc. You just can’t do this in five minutes generally. But if your under the gun and asked me to spec something out today… here are some general guidelines.

As of March 10th 2009 here is what I would recommend ( This are going to change every few months potentially with new versions of MySQL & new hardware:

CPU:
Currently the scalability of Innodb beyond 8 cores is limited, in fact with the current ( unpatched ) releases you may see a performance regression with more then 8 cores. We wrote about this before. If you have the money go with the fastest CPU’s available. Avoid servers with lots of cores and a lower speeds.

Memory:
The more memory generally the better. Here I would shoot for an amount of memory that will allow 100% of your hot data to be in memory. If you do not know how much data is going to be hot, a good guess in my experience is 10-20% of the total database size , but that’s going to vary from application to application. If you can’t figure out the total host data, more is better or a 20% rule of thumb is better then nothing. Minimally plan for 2-4GB of memory to be allocated to the OS. Typically I want at least 4GB of memory for the OS, and if I have a really active database I want more ( 8GB+ ). When I say 4GB for the OS, this will also be used for the MySQL Per thread buffers/thread stack, etc. So if you have a 24GB Database and all 24GB is hot or going to be used frequently I may put in 32GB of memory in my system and allocate 24GB to innodb and reserve the other 8GB for the OS and other items.

Disk:
Disk is going to be a toughy in 5 minutes. You really have two concerns here, Disk capacity & IO Capacity (think io’s per second). Disk capacity is generally pretty easy, I need XGB of disk space… most people can estimate this no problems. Keep in mind with RAID you will lose some raw disk capacity ( I.e. 4 160GB drives in a RAID 10 setup will deliver ~320GB of usable space ). A 5 minute answer to IO capacity is a bit more of a challenge. One of the descisions yo will need to make if you can get by with internal disk or you need a SAN. Just the other day Peter Z wrote about when to choose a SAN… give it a read. Assuming your making a decision in 5 mintes I am going to make an assumption that your going to look for internal disk. Purchasing the correct SAN in my opinion requires a lot of thought. So Let assume you want to use internal disk. First If all of your data fits into memory, it lessons your disk requirements a bit but it will not eliminate disk IO ( your still going to read and write to disk, but your reads should be lessened ). I strongly urge that you keep the database and OS completely separate. So that’s 2 disks for the OS ( mirrored disks should be fine ). For the database I typically recommend RAID10 for the data ( RAID 5 maybe OK for database with fewer writes, I.e. data warehouses ) which means a minimum of 4 disks for your database. So thats 6 disks to start with. You can then scale up from there as you need more, without more analysis your going to be guessing here. In terms of the type of drives, SAS or SCSI in either 10K or 15K speeds are pretty standard. I would avoid SATA drives that are <10K rpm. Of course this can all change, because it really depends on your needs and requirements… as I said tough!

Disk Controller:
Cache on your disk controller is important and the more the better in most cases. Make sure your controller has a battery backup, otherwise its really useless.

Network Cards:

Purchase at least two network cards for your system, both full 1GBE. Typically I would bond these two nics together to give some redundancy. Also avoid dropping your new server into a 100Mb/s network as well.

A quick note on the OS… make sure you install a 64 bit OS!

原文:http://www.bigdbahead.com/?p=158

分享到:
评论

相关推荐

    如何选择数据库产品 如何选择数据库产品

    - **成本效益**:评估数据库的总拥有成本,包括软件许可费、硬件投资、维护费用等,确保选择的数据库在经济上是可行的。 - **技术栈兼容性**:确保所选数据库与现有技术栈的兼容性,减少集成过程中的潜在问题。 - ...

    doppioDB -硬件加速数据库_C语言_代码_相关文件_下载

    doppioDB是一款专为实现硬件加速而设计的数据库系统,它利用现代计算机硬件的特性,尤其是GPU(图形处理器)的并行计算能力,来提升数据处理的速度和效率。在数据库领域,这样的优化对于大数据分析、实时查询以及高...

    数据库原理选择题总结

    根据提供的文件内容,这里将对其中涉及的数据库原理选择题进行详细的知识点解析与总结。 ### 数据库原理选择题知识点解析 #### 1. 数据库模式的理解 题目中提到的“ûsteller”部分可能是因为文本编码问题导致显示...

    数据库选择题答案解析.doc

    数据库选择题答案解析: 1. 数据的理解:数据可以是各种形式,包括数字、文本、图像、声音等,它们的处理方法因类型不同而异。数据的表示形式多样,且并非所有数据都适合参与数值运算。 2. 信息的定义:信息是数据...

    三级数据库考试基本要求

    1. 计算机系统和软件基础:这部分要求考生理解计算机系统的构成,包括硬件和软件,熟悉计算机的不同应用领域。同时,考生需要掌握计算机软件的基本概念,例如操作系统、应用软件等。 2. 数据结构与算法:数据结构...

    数据库讲义、数据库讲义、数据库讲义

    数据库系统(Database System,DBS)则包括数据库、硬件、软件以及人员等多个组成部分。其中,数据库管理系统(Database Management System,DBMS)是核心软件,它负责管理和控制数据库的创建、操作和维护。常见的...

    嵌入式数据库的设计

    5. **资源优化**:考虑到硬件资源限制,嵌入式数据库需要进行资源优化,例如降低磁盘I/O、减少内存占用、优化CPU使用率等。 6. **数据安全性**:确保数据的安全性,包括加密存储、权限管理以及备份恢复策略,是设计...

    linux下神通数据库安装包

    1. **硬件需求**:根据数据库规模,需要足够的内存、处理器资源和磁盘空间。一般来说,至少需要2GB的内存和一定的硬盘空间用于数据文件和日志文件。 2. **软件需求**:需要一个兼容的Linux发行版,如CentOS、Red Hat...

    数据库资料数据库 亚马逊数据库 亚马逊

    3. **云数据库**:随着云计算技术的发展,越来越多的企业选择将数据库部署在云端,如Amazon RDS、Google Cloud SQL等。 ### 亚马逊数据库服务简介 亚马逊提供了多种数据库服务,涵盖了从传统的SQL数据库到现代的...

    db2数据库安装包、db2数据库安装驱动

    1. **环境检查**:确保你的计算机满足DB2的硬件和软件需求,包括内存、处理器速度、磁盘空间以及兼容的操作系统版本。 2. **下载安装包**:你可以从IBM官方网站获取最新的DB2安装包,这个压缩包中包含的就是所需的...

    数据库实验--数据库实验平台的安装、数据库创建与维护实验--实验报告

    本实验的目的是通过对 Microsoft SQL Server 数据库的安装和简单使用,了解安装 Microsoft SQL Server 数据库的软硬件环境和安装方法;熟悉 Microsoft SQL Server 数据库相关使用;熟悉 Microsoft SQL Server 数据库...

    SQL数据库优化方法

    本文将深入探讨SQL数据库的优化方法,包括网络优化、硬件优化、操作系统优化、数据库参数调整以及应用程序优化等几个核心方面。 首先,我们来看网络优化。网络是数据库系统中的重要组成部分,数据的传输速度直接...

    数据库测试程序测试数据库

    - 兼容性测试:验证数据库在不同操作系统、硬件和网络环境下的表现。 2. **测试方法**: - 单元测试:针对数据库的单个组件或存储过程进行测试。 - 集成测试:测试数据库与其他系统组件(如应用程序)的交互。 ...

    数据库安装

    在安装数据库之前,要确保计算机满足系统的最低硬件和软件要求。例如,内存、处理器速度、磁盘空间等。同时,操作系统需支持所选的DBMS,例如Windows、Linux或macOS。对于开发者来说,还要考虑开发工具和编程语言的...

    数据库系统选择题及答案.doc

    以上是对《数据库系统》选择题的解析,涉及了数据库的基础概念、数据独立性、DBMS的作用、数据库的三级模式、数据管理和用户接口等方面的知识。理解这些知识点对于理解和使用数据库系统至关重要。

    数据库系统实现 数据库系统实现

    此外,数据库系统的性能优化是另一个重点,包括查询优化、硬件调优、分区策略和并行执行等。查询优化器分析SQL语句,选择最佳的执行路径;硬件调优可能涉及CPU、内存、磁盘和网络等方面的调整;分区是将大表分成更小...

    4数据库设计文档.doc

    这部分描述了数据库运行的硬件、软件环境,包括数据库管理系统(DBMS)的选择、操作系统、网络环境等,这些因素将影响数据库的性能和扩展性。 3. 数据库的命名规则 为了保持数据库的整洁和可读性,制定了明确的命名...

    Dao Jet数据库引擎

    - 硬件需求:由于其轻量级的特性,Dao Jet通常对硬件要求不高,适合老旧或资源有限的系统。 总的来说,Dao Jet数据库引擎是针对特定场景的数据库解决方案,尤其适合那些需要在不支持其他大型数据库引擎的Windows...

    数据库 选择题集

    DBS(数据库系统)是一个更全面的概念,它不仅包括数据库,还包含了硬件、软件以及数据库管理员(DBA)。DBA负责维护数据库的完整性和性能,确保数据的安全性和一致性。数据库系统的特点包括数据结构化、数据独立性...

    数据库原理基础(数据库管理系统 数据库系统 数据模型 )

    数据库管理系统是管理和控制数据库的关键工具,而数据库系统则是包括DBMS在内的所有硬件、软件和数据资源的整体。数据模型是描述数据结构和数据间关系的方法,是构建数据库的基础。 首先,我们来看数据这一概念。...

Global site tag (gtag.js) - Google Analytics