Db2 - Database Partition and Processor Environments
Db2 - Database Partition and Processor Environments
This section provides an overview of both single database partition and multiple database partition configurations. The former include single
processor (uniprocessor) and multiple processor (SMP) configurations, and the latter include database partitions with one processor (MPP) or
multiple processors (cluster of SMPs), and logical database partitions.
Capacity refers to the number of users and applications able to access the database. This is in large part determined by memory, agents, locks, I/O,
and storage management. Scalability refers to the ability of a database to grow and continue to exhibit the same operating characteristics and
response times. Capacity and scalability are discussed for each environment.
In this environment you can add more disks. Having one or more I/O servers for each disk allows for more than one I/O operation to take place at the
same time.
A single-processor system is restricted by the amount of disk space the processor can handle. As workload increases, a single CPU might not be able
to process user requests any faster, regardless of other components, such as memory or disk, that you might add. If you have reached maximum
capacity or scalability, you can consider moving to a single database partition system with multiple processors.
With multiple processors available, different database operations can be completed more quickly. Db2® database systems can also divide the work
of a single query among available processors to improve processing speed. Other database operations, such as loading data, backing up and
restoring table spaces, and creating indexes on existing data, can take advantage of multiple processors.
You can increase the I/O capacity of the database partition associated with your processor by increasing the number of disks. You can establish I/O
servers to specifically deal with I/O requests. Having one or more I/O servers for each disk allows for more than one I/O operation to take place at
the same time.
If you have reached maximum capacity or scalability, you can consider moving to a system with multiple database partitions.
A partitioned database environment allows a database to remain a logical whole, despite being physically divided across more than one database
partition. The fact that data is distributed remains transparent to most users. Work can be divided among the database managers; each database
manager in each database partition works against its own part of the database.
If you have reached maximum capacity or scalability, you can consider moving to a system where each database partition has multiple processors.
This configuration combines the advantages of SMP and MPP parallelism. This means that a query can be performed in a single database partition
across multiple processors. It also means that a query can be performed in parallel across multiple database partitions.
In this environment you can add more database partitions, and you can add more processors to existing database partitions.
Logical database partitions provide scalability. Multiple database managers running on multiple logical partitions can make fuller use of available
resources than a single database manager can. Figure 5 illustrates the fact that you can gain more scalability on an SMP machine by adding more
database partitions; this is particularly true for machines with many processors. By distributing the database, you can administer and recover each
database partition separately.
Intra-Query Parallelism
Hardware Environment I/O Parallelism
Intra-Partition Inter-Partition
Parallelism Parallelism
even on a single processor system, especially if your queries are not fully using the CPU (for example, if they are I/O bound).
Parent topic:
Partitioned database environments