In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
According to the needs of the business, the stress test of the online server to understand a peak in the running process. Stress testing of MONGODB is mainly used through the mongo-mload tool.
Download the http://down.51cto.com/data/2287216### toolkit
Testing process:
1. Clean the database:
Go run mload.go-host 127.0.0.1-clean true
2. Insert data
Go run mload.go-- host 127.0.0.1-- datanum 10000-- procnum 8-- cpunum 8-- jsonfile. / test_data.json-- operation insert
First clean up the database:
Go run mload.go-host 127.0.0.1-clean true
Then prepare the data for the query (for example, 1000000 items):
Go run mload.go-- host 127.0.0.1-- datanum 1000000-- procnum 1-- operation prepare
Next, test (of limit one):
Use 8-core cpu,8 concurrency
Go run mload.go-host 127.0.0.1-datanum 1000000-procnum 8-cpunum 8-operation query
In the process of non-limit one
Use 8-core cpu,8 concurrency
Go run mload.go-- host 127.0.0.1-- datanum 1000000-- procnum 8-- cpunum 8-- operation query-- queryall true
First clean up the database:
Go run mload.go-host 127.0.0.1-clean true
Then prepare the data for the query (for example, 1000000 items):
Go run mload.go-host 127.0.0.1-datanum 1000000-procnum 1-logpath / tmp/log.log-operation prepare
And then run the test.
Go run mload.go-host 127.0.0.1-datanum 1000000-procnum 1-logpath / tmp/log.log-operation tps
Update test
First clean up the database:
Go run mload.go-host 127.0.0.1-clean true
Then prepare the data for the query (for example, 1000000 items):
Go run mload.go-- host 127.0.0.1-- datanum 10-- procnum 1-- operation prepare
Let's do the update pressure test.
Go run mload.go-- host 127.0.0.1-- datanum 1-- procnum 10-- operation update
Geo query test
First clean up the database:
Go run mload.go-host 127.0.0.1-clean true
Then prepare the data for the query (for example, 1000000 items):
Go run mload.go-- host 127.0.0.1-- datanum 100000-- procnum 2-- operation prepare
Go run mload.go-host 127.0.0.1-- datanum 100000-- procnum 2-- operation prepare-- db test-- collection testccc-- geofield gps-- geo
Next, test (of limit one):
Use 8-core cpu,8 concurrency
Go run mload.go-host 127.0.0.1-datanum 100000-procnum 8-cpunum 4-operation query-geofield loc-geo true
Go run mload.go-host 127.0.0.1-datanum 100000-procnum 8-cpunum 4-operation query-db metok_core-collection cell_position-geofield loc-geo
In the process of non-limit one
Use 8-core cpu,8 concurrency
Go run mload.go-host 127.0.0.1-datanum 100000-procnum 8-cpunum 4-operation query-queryall true-geofield loc-geo true
Go run mload.go-host 127.0.0.1-datanum 100000-procnum 8-cpunum 4-operation query-queryall true-db metok_core-collection cell_position-geofield loc-geo
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.