One hundred million electricity supplier details page flow combat system (Second Edition)

Source: B station one hundred million electricity supplier details page flow combat system (Second Edition)

 

Electricity supplier website architecture details page:

P3 : Architecture 1 : static page architecture; small electricity suppliers, less static pages

Velocity / FreeMarker / Thymeleaf template

Template + data = "End of page

If the template or data has changed, you need to re-render the page generated html- "push nginx

 

P4 : Large site details page architecture

 

P5: support high availability, high reliability, backup and recovery Redis importance

Cache architecture of the product details page:

 

redis architecture:

1 ) high concurrency, high availability: huge amounts of data, back up, ready to be restored, if the cache architecture to support these,

 

First, Redis architecture support: access to hundreds of thousands per second, QPS , 99.99% availability, TB class mass data backup and recovery, cache architecture is half the battle.

 

The simplest mode: access Redis

 

1 ) solve the problem of high concurrency scenarios under various cache faced cache architecture constantly introduce various solutions and technologies to address the high concurrency problems.

 

2 ) to solve the problem of high availability architecture itself faced with a wide variety of cache, cache architecture introduced various solutions and technologies to address the problem of availability.

 

P6: Guidance virtual machine build 4 -node CentOS cluster

VirtualBox +CentOS6.5

Memory 1G , card selection bridge,

 

 

 

1 , configure the network

// Red is VI operation, followed by a specific command ; first through the DHCP dynamic allocation of IP , and then assign the IP ( the ifconfig query result) by static configured static IP

 

 

 

2, the configuration the hosts (as for a machine according to the actual situation)

 

 

 

3, the configuration SecureCRT native connection VM

 

 

 

4, close the CentOS firewall and Windows Firewall

 

 

 

5, configure yum

 

 

 

 

 

Winscp installation file upload

 

 

 

Configuring CentOS cluster

 

 

Guess you like

Origin www.cnblogs.com/clarino/p/12038051.html