简体   繁体   English

声纳Qube UI需要更新

[英]Sonar Qube UI long to update

We have recently installed a SonarQube instance to check our source code. 我们最近安装了SonarQube实例来检查我们的源代码。 The codebase is pretty large, with more than 1 million lines of code. 该代码库非常大,有超过一百万行代码。

We run sonar-runner automatically via Jenkins. 我们通过詹金斯自动运行声纳运行器。

Now I get that the UI gets updates only after sonar-runner stores its results in the database. 现在我知道,只有在声纳运行器将其结果存储在数据库中之后,UI才会更新。 But it seems to really take ages sometimes, up to an hour after the success of sonar-runner before we are able to see anything coming in the UI. 但是有时候似乎确实需要花很多时间,直到声纳运行器成功之后的一个小时,我们才能看到UI中出现任何东西。

So I have a couple questions, all related : 所以我有几个问题,所有相关:

  • Is there a way to see analysis that are still 'in the pipes'? 有没有办法查看仍在“分析”中的分析?
  • Where can I see whether the conversion from database to the UI has failed? 在哪里可以查看从数据库到UI的转换是否失败?
  • Is there a way to speed the process? 有没有办法加快这个过程?

So if I summarize? 那么,如果我总结一下? How can I impact the sonar-runner to sonar UI latency? 我如何影响声纳运行器到声纳UI延迟?

I went through all the docs but couldn´t find much about this yet. 我浏览了所有文档,但找不到很多。

Thanks for the info, 谢谢(你的)信息,

  • Is there a way to see analysis that are still 'in the pipes'? 有没有办法查看仍在“分析”中的分析?

Yes, log in as admin and go to Settings > System > Analysis report 是的,以管理员身份登录,然后转到“设置”>“系统”>“分析报告”

  • Where can I see whether the conversion from database to the UI has failed? 在哪里可以查看从数据库到UI的转换是否失败?

have a look at the content of the "Current Activity" and "Past Reports" tabs 看一下“当前活动”和“过去的报告”标签的内容

  • Is there a way to speed the process? 有没有办法加快这个过程?

This is a very broad question which implies tones of different answers. 这是一个非常广泛的问题,意味着不同答案的音调。 It all depends on where time is spent. 这完全取决于时间在哪里度过。 You may be CPU bound, or memory bound or database bound, ... 您可能受CPU限制,或者受内存或数据库限制,...

Having a look at the queue of report processing might give you a hint. 查看报告处理队列可能会给您提示。

1 MLoc is not so huge. 1 MLoc并不是很大。 I run SonarQube thru sonar-runner+Jenkins, and when Jenkins indicates in the log that the analysis has been successful, I am able to see it in SonarQube's dashboard. 我通过sonar-runner + Jenkins运行SonarQube,当Jenkins在日志中指出分析成功时,我可以在SonarQube的仪表板上看到它。 So I would say your 'latency' is not normal. 所以我想说您的“等待时间”不正常。

Could you please precise your environment? 您能否改善您的环境? Physical/virtual? 物理/虚拟的? OS? 操作系统? DB? D B? SQ release? SQ发布? etc. 等等

After loads of searching around, I realized that for some reason sonarQube didn´t handle correctly the fact that I was running several sonar-runner analysis right after each other. 经过大量搜索之后,我意识到由于某些原因,sonarQube无法正确处理我彼此接连运行多个声纳-运行器分析的事实。 After the ´Store results in database´ message, there are a couple seconds for which starting a new analysis will cause SonarQube GUI to not see the analysis. 在“将结果存储在数据库中”消息之后,有几秒钟的时间开始新的分析将导致SonarQube GUI无法看到分析。

Running analysis with a bit more time between them reduced the latecny by a great deal. 在它们之间进行更多时间的运行分析,极大地减少了延迟。

Due to the fact that Seb gave a lot of insight about SonarQube itself, I will accept his answer. 由于Seb对SonarQube本身提供了很多见识,我将接受他的回答。 It is also probably more fit to a general public and less specific to my situation. 它也可能更适合普通大众,而不是针对我的情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM