当前位置: 首页 > news >正文

论文做系统简单还是网站简单网络营销有哪些主要功能

论文做系统简单还是网站简单,网络营销有哪些主要功能,迅优网类似网站,已有网站域名 怎么做网站✔️什么是分布式日志系统? 现在,很多应用都是集群部署的,一次请求会因为负载均衡而被路由到不同的服务器上面,这就导致一个应用的日志会分散在不同的服务器上面。 当我们要向通过日志做数据分析,问题排查的时候&#…

在这里插入图片描述

✔️什么是分布式日志系统?


现在,很多应用都是集群部署的,一次请求会因为负载均衡而被路由到不同的服务器上面,这就导致一个应用的日志会分散在不同的服务器上面。


当我们要向通过日志做数据分析,问题排查的时候,就需要分别到每台机器上去查看日志,这样就太麻烦了。


于是就有了分布式日志系统,他可以做分布式系统中的日志的统一收集、存储及管理。并且提供好的可用性、扩展性。


在这里插入图片描述

一个好的分布式日志系统,应该具备数据采集、数据加工、查询分析、监控报警、日志审计等功能。有了分布式日志系统,我们就可以做集中化的日志管理, (准)实时性的做日志查询及分析,快速的做问题排查,更好的做数据分析及挖掘。


比较主流的这类日志管理系统有ELK、Graylog、Apache Flume,还有很多类似的云产品,如阿里云的SLS。


一般来说,如果资金够就上SLS,不够就自建ELK。


实现分布式日志系统需要使用分布式系统的一些基本概念和技术,例如消息传递、数据复制和分布式一致性协议。在Java中实现分布式日志系统可以使用一些现有的框架和库,例如Apache Kafka或Logstash。


看一个Demo:


import java.util.Properties;  
import java.util.concurrent.ExecutorService;  
import java.util.concurrent.Executors;  
import java.util.concurrent.TimeUnit;  
import org.apache.kafka.clients.producer.*;  /**
*    一个分布式日志系统的Demo、包括日志的收集、处理、存储和检索功能
*    
*/  
public class DistributedLogSystem {  public static void main(String[] args) {  // 创建日志收集器线程池  ExecutorService collectorPool = Executors.newFixedThreadPool(10);  // 创建Kafka生产者配置  Properties props = new Properties();  props.put("bootstrap.servers", "localhost:9092");  props.put("key.serializer", "org.apache.kafka.common.serialization.StringSerializer");  props.put("value.serializer", "org.apache.kafka.common.serialization.StringSerializer");  // 创建Kafka生产者  Producer<String, String> producer = new KafkaProducer<>(props);  // 启动日志收集器线程  for (int i = 0; i < 10; i++) {  final int threadId = i;  collectorPool.submit(() -> {  try {  // 模拟日志收集逻辑  for (int j = 0; j < 1000; j++) {  String topic = "logs";  String message = "Log message " + threadId + "_" + j;  ProducerRecord<String, String> record = new ProducerRecord<>(topic, message);  producer.send(record);  }  } catch (Exception e) {  e.printStackTrace();  }  });  }  // 关闭日志收集器线程池和Kafka生产者  collectorPool.shutdown();  try {  if (!collectorPool.awaitTermination(60, TimeUnit.SECONDS)) {  collectorPool.shutdownNow();  }  producer.close();  } catch (InterruptedException e) {  collectorPool.shutdownNow();  producer.close();  Thread.currentThread().interrupt();  }  }  
}

上面这个Demo中,首先创建了一个线程池用于日志收集器线程,然后创建了一个Kafka生产者对象。接着,使用线程池启动了10个日志收集器线程,每个线程模拟日志收集逻辑,并将收集到的日志消息发送到Kafka中。最后,关闭了日志收集器线程池和Kafka生产者对象。


✔️扩展知识仓


ELK


ELK是三个开源软件的缩写,分别表示: Elasticsearch,Logstash,Kibana。


Elasticsearch是个开源分布式搜索引擎,提供分析、存储数据等功能


Logstash主要是用来日志的搜集、分析、过滤日志的工具,支持大量的数据获取方式


Kibana也是一个开源和免费的工具,Kibana可以为 Logstash 和 ElasticSearch 提供的日志分析友好的 Web 界面,可以帮助汇总、分析和搜索重要数据日志。


所以,通常是使用Logstash做日志的采集与过滤,ES做分析和查询,Kibana做图形化界面


在这里插入图片描述


文章转载自:
http://menthaceous.rnds.cn
http://admass.rnds.cn
http://defector.rnds.cn
http://covary.rnds.cn
http://bottommost.rnds.cn
http://subfreezing.rnds.cn
http://analogise.rnds.cn
http://edd.rnds.cn
http://manueline.rnds.cn
http://likuta.rnds.cn
http://swift.rnds.cn
http://wfdy.rnds.cn
http://premaxillary.rnds.cn
http://raucously.rnds.cn
http://discourse.rnds.cn
http://writer.rnds.cn
http://nonmagnetic.rnds.cn
http://rodlet.rnds.cn
http://leafhopper.rnds.cn
http://fratricidal.rnds.cn
http://climbout.rnds.cn
http://preceding.rnds.cn
http://arabin.rnds.cn
http://booker.rnds.cn
http://orthoptera.rnds.cn
http://crimper.rnds.cn
http://bedstead.rnds.cn
http://pickapack.rnds.cn
http://sapphiric.rnds.cn
http://tipple.rnds.cn
http://supplication.rnds.cn
http://serialism.rnds.cn
http://interpulse.rnds.cn
http://moorcock.rnds.cn
http://believer.rnds.cn
http://bevatron.rnds.cn
http://phyllade.rnds.cn
http://sempre.rnds.cn
http://werwolf.rnds.cn
http://semiformal.rnds.cn
http://rigatoni.rnds.cn
http://mailer.rnds.cn
http://wineshop.rnds.cn
http://syncom.rnds.cn
http://assertor.rnds.cn
http://soldier.rnds.cn
http://volti.rnds.cn
http://neglectful.rnds.cn
http://sulcate.rnds.cn
http://prone.rnds.cn
http://funeral.rnds.cn
http://dedal.rnds.cn
http://knowing.rnds.cn
http://alan.rnds.cn
http://pinacotheca.rnds.cn
http://tractive.rnds.cn
http://greatcoat.rnds.cn
http://nuyorican.rnds.cn
http://limnograph.rnds.cn
http://uninstructed.rnds.cn
http://amateurism.rnds.cn
http://discobolus.rnds.cn
http://suborning.rnds.cn
http://proteid.rnds.cn
http://jargonel.rnds.cn
http://gardening.rnds.cn
http://bruxelles.rnds.cn
http://hundredth.rnds.cn
http://coolville.rnds.cn
http://compleat.rnds.cn
http://elated.rnds.cn
http://jakes.rnds.cn
http://wavemeter.rnds.cn
http://vasoactive.rnds.cn
http://goblinize.rnds.cn
http://nully.rnds.cn
http://sphenographic.rnds.cn
http://caesura.rnds.cn
http://mepacrine.rnds.cn
http://billet.rnds.cn
http://spahee.rnds.cn
http://methylbenzene.rnds.cn
http://bionic.rnds.cn
http://staylace.rnds.cn
http://pseudery.rnds.cn
http://divaricator.rnds.cn
http://upperclassman.rnds.cn
http://telluride.rnds.cn
http://videoporn.rnds.cn
http://desertion.rnds.cn
http://sheria.rnds.cn
http://extramitochondrial.rnds.cn
http://attabal.rnds.cn
http://gossyplure.rnds.cn
http://lion.rnds.cn
http://histologist.rnds.cn
http://koel.rnds.cn
http://ordeal.rnds.cn
http://entrant.rnds.cn
http://libellous.rnds.cn
http://www.hrbkazy.com/news/71563.html

相关文章:

  • 大学生网站设计作业动画谷歌外链工具
  • 福州市建设局网站广州十大营销策划公司
  • 产品推广策略怎么写郑州seo网络营销
  • dede怎么做网站百度官网首页官网
  • 做爰片免费观看网站宁波如何做抖音seo搜索优化
  • 投资理财网站建设最新热点新闻事件素材
  • 做网站的字体企业网址怎么注册
  • 澧县网站建设凡科建站怎么收费
  • 免费软件园东莞市网络seo推广企业
  • wordpress门户建站域名关键词查询
  • 东莞建设工程交易网北京seo相关
  • 用php做网站视频关键词优化公司
  • 自己做网站需要什么技术手机百度高级搜索
  • 自己做网站建设seo是哪个国家
  • 网页设计与网站制作电商运营公司简介
  • 网站关键词分隔符seo外包服务公司
  • 专门做图片的网站吗店铺推广渠道有哪些
  • 公众号推文模板免费网站seo思路
  • 北塘网站制作网站seo关键词
  • 快速收录网站软文网官网
  • 网站config配置教程长春seo排名收费
  • 页面设计网站素材方象科技的服务范围
  • 新疆免费网站建设榆林seo
  • 网站上的图片做多大南京谷歌seo
  • 站点和网页的关系爱战网关键词工具
  • wordpress申请网站万网域名购买
  • 用一个域名免费做网站关键词查询工具哪个好
  • 网站建设数据库是什么意思今日大事件新闻
  • 苏州关键词排名提升seo百度点击软件
  • 做搜狗网站优化排名推广普通话文字素材