Jiaxing that the hospital can do a test tube for the egg? How much the price of eggs?

Jiaxing Wei electrical █ 188 ★ 2335 ★ 0811 ████ ███ sex tube selected for egg IVF surrogacy selected ███ ████ tube package gender boy born boy ████ ████ Surrogacy surrogacy package born ███ ██ sex surrogate choose IVF surrogacy boy ███ █████
  1. application for a highly concurrent, would you choose to print the access log?
  2. For distributed applications, whether you choose to print all the logs to the log center?
Solution:
  1. If you choose to if performance does not print the log, that is understandable. But you have to consider carefully whether or not able to do when something goes wrong fast investigation?
  2. Do you think the distribution log on each machine is very convenient, it goes without logging center is also OK!
  If you still choose to print a large number of access logs, or if you choose to print the log to the log center, then this article useful to you!
  If they achieve a logging center, it is not that difficult, or to spend too much effort, such as performance, such as capacity size!
  So, we choose Ali cloud loghub center as a log, collect all the logs!
loghub normal operation:
  Before presenting the subject matter hereof, we have to look at loghub own way, and problems!
  Access the official document, it is recommended that we use logProducer access.
  In fact logProducer has done a lot of optimization, such as when the log data packets reach Yidingshuliang only unified transmission, asynchronous transmit and so on!
  As for why this article will continue to exist, it is because these optimizations were not enough, for example, send these logs will still affect business performance, will still be subject to memory limitations, will still occupy a lot of cpu. . .
  Well, access:
  1. introducing maven dependency:
<dependency>
<groupId>com.aliyun.openservices</groupId>
<artifactId>aliyun-log-logback-appender</artifactId>
<version>0.1.13</version>
</dependency>
  2. logback中添加appender:
<appender name="LOGHUB-APPENDER" class="appender:com.aliyun.openservices.log.logback.LoghubAppender">
<endpoint>${loghub.endpoint}</endpoint>
<accessKeyId>${loghub.accessKeyId}</accessKeyId>
<accessKey>${loghub.accessKey}</accessKey>
<projectName>${loghub.projectName}</projectName>
<logstore>test-logstore</logstore>
<topic>${loghub.topic}</topic>
<packageTimeoutInMS>1500</packageTimeoutInMS>
<logsCountPerPackage>4096</logsCountPerPackage>
<!-- 4718592=4M, 3145728=3M, 2097152=2M -->
<logsBytesPerPackage>3145728</logsBytesPerPackage>
<!-- 17179869184=2G(溢出丢弃) , 104857600=12.5M, 2147483647=2G, 536870912=512M-->
<memPoolSizeInByte>536870912</memPoolSizeInByte>
<retryTimes>1</retryTimes>
<maxIOThreadSizeInPool>6</maxIOThreadSizeInPool>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
</filter>
</appender>
<root level="${logging.level}">
<appender-ref ref="STDOUT"/>
<appender-ref ref="LOGHUB-APPENDER" />
</root>
  3. 在代码中进行日志打印:
private static Logger logger = LoggerFac

Guess you like

Origin www.cnblogs.com/rewq/p/10988530.html