When the number of single-table records reaches millions to tens, the use of a table is necessary.Data segmentation can be physical, the data through a series of segmentation rules to distribute the data to different DB servers, routing rules to access a specific database, so that each access to face is not a single server, but the n server, which can reduce the
Phenomenon: Suddenly found that access to the site is very slow, the server's CPU, memory and disk usage is normal
Analysis process and Solution: query/var/log/message log found such a record "Ip_conntrack table full dropping packet". Kernel use the Ip_conntrack module to record the status of the Iptables network packet and save it to the table (this table in me
when connect_content= "or connect_content is null then ' unused ' end) ' Business unused ',COUNT (case when connect_content was not null and then ' used ' end) as ' business used 'From Optic_cable_port) b,(select COUNT (c.f_id) ' through the standard Stone ' from optic_cable A/* Optical cable */Left join Optic_linepat b/* cable patrol line */On a.f_id=b.f_idLeft JOIN Optic_linepat_sub c/* Optical Cable path table (Standard stone) */On b.f_id=c.f_olp_
Tags: ICA span database Development SDN HREF Tar Article sub-tablebasic idea and segmentation strategy of database sharding on the grain size of vertical splitting vertical sharding Database Library Sub-table (sharding) series (i) Split implementation policy and sample demo Database Library Sub-table (sharding) series (ii) Global primary key generation strategy Database Library Sub-
), so many teams choose to implement sharding themselves.A simple summary, the DAO layer self-realization of the advantages of sharding: not by the ORM framework constraints, easy to implement, easy to customize according to the characteristics of the system, no SQL parsing and routing rules matching, performance will be slightly better; The disadvantage is: there is a certain technical threshold, Workload is larger than relying on framework implement
written is too large to directlyMaximum burst disk.Resources have the maximum limit, the CPU is used for example 64-core model, the disk up to hundreds of T, then high sorry, no more cock machine, but there is no limit to the user's data and queries.The upper limit of connection pool resources, why to put the connection pool alone, the reason is that the business volume of a large,Disaster tolerance, although the transaction can ensure that the data is not lost after the restart, but the line o
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.