30.2 network traffic optimization
1 At present, users are basically downloading the app through the network and updating the app version, reduce the size of the app, you can effectively reduce user consumption of network traffic.
2 at present, the league has supported the incremental upgrade app features, so that even if the app has 10M size, but if the changes are only 10K, using the incremental upgrade feature, users only need to download
directories with the specified name in a specific directory find:1 -AMIN-10 files or directories accessed within 10 minutes (corresponding to-) FIND/HOME-ATIME-10 files and directories accessed within 10 hours find/home-cmin-10 files and directories changed within 10 minutes find/home-c Time +10 10 hours ago changed files and directories (previously corresponding to +) 3) Search by file size: find/home-size +10k means to find a file or directory of s
Test environment:Server: X86 pcserver total 6 unitsCPU: Single 8-coreMemory: 64GDisk: RAID 10Operating system: CentOS 6.5mongodb:3.0Java Driver: 2.13.0jdk:1.6Network: Gigabit EthernetTest One:Single Monodb service, one with configuration server as a pressure server, the amount of data does not exceed the size of memory.The MongoDB configuration is as follows:Fork = Truebind_ip=10.10.130.33Port = 10000DBPath =/data/dbLogPath =/data/log/log_m.txtPidfilepath =/data/pid/pid_m.txtJournal = TrueStorag
partitioned tables1. Create a range partition tableUse the partition by RANGE clause to indicate the range partition, use the partition clause to identify each partition range, and the partition clause subordinate clause to specify the physical properties that are specifically used for the partition segment, and automatically inherit the properties of the underlying table if there are no overloads.Re-Modify the example above:CREATE TABLE Sales(Invoice_no number,Sale_year INT not NULL,Sale_month
the specified name in a specific directory "Case" Find/-name man: Meaning to start searching for a file or directory named man from the root directorySearch for files or directories that have been accessed/changed over time "Case" find/home-amin-10: Files or directories accessed within 10 minutes"Case" find/home-atime-10: Files or directories accessed within 10 hours"Case" FIND/HOME-CMIN-10: Changed files or directories within 10 minutes"Case" Find/home-ctime + 10: Changed files or directories
Tags: Microsoft strip line break results screen problem logs cat contentMore commandsUsing the more command to display the more/var/log/boot.log-20171129 file, you can see that the system is displayed full screen when the pause, use a space to page, use the Q key to exit.SplitThe split command splits a large file into small files that sometimes need to be split into smaller pieces, such as for readability, log generation, and so on.-B: The value is the size of each output file, in bytes.-D: Use
in table tennis, the round-trip time represents the time required to travel between two athletes. Then you will start to clarify the problem.Part of the general operation of most network protocols is like playing table tennis. These "out-of-the-ball", assuming you want to, is to establish and maintain a network link session (sessions) required for two-way exchange of information (such as TCP) or to run a service request (such as HTTP). These messages are very little or no data transferred durin
open source message queue written using Erlang, which itself supports a lot of protocols: Amqp,xmpp, SMTP, STOMP, and that's why it's very heavyweight and more suitable for enterprise-class development. The broker framework is also implemented, which means that messages are queued in the central queue before being sent to the client. Good support for routing, load balancing, or data persistence.RedisRedis is a NoSQL database based on Key-value, which is very active in development and maintenanc
real-time data processing. Scale out: Supports online horizontal scaling. RabbitMQ RabbitMQ is an open source message queue written using Erlang, which itself supports a lot of protocols: Amqp,xmpp, SMTP, STOMP, and because of this, it's very heavyweight and more suitable for enterprise-class development. The broker framework is also implemented, which means that messages are queued in the central queue before being sent to the client. Good support for routing, load balancing, or data persisten
Prepare to read 10k each time from the input stream, but the actual length of each read is not always 10k, maybe even 0, and three test results are as follows:First run result (read 10 times):contentlength:524507872881024010240176347234721024034723178File name: Nvdcve-2.0-modified.xmlFile Size: 711356Second run result (read 11 times):contentlength:5245078726944347234726944347234723472694434722914File name:
Xargs and exec are the filters passed by commands. They capture the results of the previous command and pass it to the next command. Simply put:
-Exec must be combined{}\;And {} indicates the Result \; Terminator of the previous query. This is a fixed method.
Xargs must be combined with | to process files in batches at a faster speed.
I did a small experiment to count the Linux system, and list the files with a size of 1 K, 10 K, and K:
Compare the file size with KB
[[emailprotected]
, and is a well-functioning distributed system in addition to its very good performance.
Redis
Redis is a NoSQL database based on Key-value, which is very active in development and maintenance. Although it is a Key-value database storage system, it natively supports MQ functionality, so it can be used as a lightweight queue service. For RABBITMQ and Redis on-board and out-of-team operations, each execution 1 million times, every 100,000 times the execution time is recorded. The test data is divi
tribes for data transmission, but it has a place to consider, the common small data can be sent directly, but the Web application is generally relatively large, it is not possible to read it all in memory and then directly into the socket, so the need to separate multiple transmissions.Several of the major components of the deployment, each of which includes the cluster component in the Tomcat cluster, contains the Clusterdeployer cluster Deployer dedicated to cluster deployment, and Clusterdep
Adobe Flash
Javascript/ajax
-JQuery
-Prototype/script.aculo.us
-Other
Php
-Zend Framework
-CodeIgniter
-Symphony
-CakePHP
-Other
Ruby on Rails
Mysql
Apache
Webbots/crawlers/spiders/screen scrapers
Wordpress
Ubuntu
English
Other
I had a labor dispute with the previous company and went to the labor organization of Donghu Development Zone, so I have some knowledge of labor law. Salary form is: Basic salary + overtime (usually two incomes, holidays 3 salary) + bonus (exceed my expectations will ha
Xargs and exec command execution efficiency, xargsexec execution efficiency
Xargs and exec are the filters passed by commands. They capture the results of the previous command and pass it to the next command. Simply put:
Exec must be used in combination with {} \;, and {} indicates the Result \; end character of the previous query. This is a fixed statement.
Xargs must be combined with |. When processing files in batches, the speed is faster because of buffering (multithreading.
For exampl
: |.........| .........| .........| .........| .........| >>>a = [0, ten, A, A, 50]>>>bisect.bisect_left (A, b) >>>3>>>a[3]>>> 30>>>bisect.bisect_left (A, >>>5>>>a[5]>>>50)
So we're going to go backwards, starting from 20 (30 of the previous tick) to read the log, 21,22,23,24 read because it is smaller than 25, so throw it away and read it to 25,26,27,... Returned to the user after
After reading to 40 (50 of the previous tick) to determine whether the current data is greater than 43, if greater
certain time to start the server refused the request, the client is full of errors displayed;4, reluctantly test completed, but the network congestion or test results show a very long time. Suppose the client and server between the hundred gigabit bandwidth, hundred trillion/10000=10k, that each user can only get 10K, this speed nearly 1 64K modem internet speed, and the above analysis all did not consider
: colleges and universities, especially 985 cattle schools, scholarship coverage is very wide, at the end of each year there will be a variety of corporate scholarships, for students is a kind of welfare bar. The Academy of Sciences system scholarship coverage is relatively small.However, realize that the difference between people is very big. Even in the same group, the annual income may be several times different, especially now that there is a national scholarship, and there is a slight incre
controlRedis: Not available, you need to implement it yourselfRabbitMQ: Server overload situation, the producer rate will be limited to ensure service reliabilityAccess Team performanceFor RABBITMQ and Redis on-board and out-of-team operations, each execution 1 million times, every 100,000 times the execution time is recorded.The test data is divided into 128Bytes, 512Bytes, 1K and 10K four different sizes of data.Experiments show that:In the queue,
to the computer intact. Test the picture.Five, the test content analysis1, Power: Purple font display as [power] for power test, can get iCore3 5V power supply, core board current, on-board 3.3v/1.2v/2.5v voltage, test success will show [OK];2, RTC Real Time Clock: will read out the RTC time and date, if the time in the walk will explain the function is correct, here should pay attention to the time is not allowed (because there is no setting);3, TF card test: This test is divided into two part
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.