首页 \ 问答 \ 达到Apache Storm的极限(Reaching limits of Apache Storm)

达到Apache Storm的极限(Reaching limits of Apache Storm)

我们正在尝试使用Apache Storm实现Web应用程序。

应用
收到大量的广告请求( 100 TPS - 一百次交易/秒),
然后对它们一些简单的计算
结果存储在NoSQL数据库中
最大延迟为10毫秒

我们正在使用Cassandra作为其写作功能的接收器。

但是,我们已经超过了8 ms要求,我们在100ms

我们尝试使用螺栓的并行性来最小化缓冲区(Disruptor缓冲区)的大小并平衡拓扑。

但我们仍然在20ms

有4名工作人员(8核/ 16GB),我们的20k TPS20k TPS ,仍然非常低。

是否有任何优化建议或
我们刚刚达到Apache Storm的极限Apache Storm
Java限制)?


We are trying to implement a web application with Apache Storm.

Application
receives a huge load of ad-requests (100 TPS - a hundred transactions / second ),
makes some simple calculation on them and then
stores the result in a NoSQL database
with a maximum latency of 10 ms.

We are using Cassandra as a sink for its writing capabilities.

However, we have already overpassed the 8 ms requirement, we are in 100ms.

We tried to minimize the size of buffers (Disruptor buffers) and to well balance the topology, using the parallelism of bolts.

But we still in 20ms.

With 4 worker ( 8 cores / 16GB ) we are at 20k TPS which is still very low.

Is there any suggestions for optimization or
are we just reaching the limits of Apache Storm
(limits of Java)?


原文:https://stackoverflow.com/questions/31336126
更新时间:2022-03-04 13:03

最满意答案

您必须访问ColumnStyles集合的索引:

With TableLayoutPanel1.ColumnStyles(1)
  .SizeType = SizeType.Absolute
  .Width = 32
End With

如果您尝试设置单行的宽度,那么除非您使用SetColumnSpan跨列来使多列成为单个列,否则这种情况确实无法实现。 这需要将控件放置在单元内。


You would have to access the index of the ColumnStyles collection:

With TableLayoutPanel1.ColumnStyles(1)
  .SizeType = SizeType.Absolute
  .Width = 32
End With

If you are trying to set the width of a single row, then that really isn't possible unless you span the column using SetColumnSpan to make multiple columns into a single column. That requires a control to be placed inside the cell.

相关问答

更多
  • 好的,所以我认为嵌套的GroupBox / UserControl-GroupBox的想法是出错的地方。 我已通过更新原始表单来解决此问题,以执行以下操作: pnlLorries.Controls.Clear(); DateTime dt_start = monthView1.SelectionStart; DateTime dt_end = monthView1.SelectionEnd; int rowCounter = 0; for (DateTime dt = dt_start; ...
  • 对于每个红色面板,将Anchor属性设置为None。 这将导致红色面板在其单元格中居中。 只要您的列设置为20%的宽度,它应该按照您描述的方式工作。 我做到了,得到了下面的结果。 For each of your red panels, set the Anchor property to None. This will cause the red panel to be centered within its cell. As long as your columns are set to a width ...
  • 添加degreePanel.Dock = DockStyle.Fill Add degreePanel.Dock = DockStyle.Fill
  • 没关系,我意识到TableLayoutPanel的边框设置是“Inset”,所以看起来好像有空格。 将其更改为“单一”修复了该问题。 Never mind, I realised that the TableLayoutPanel's border setting was "Inset", so it appeared as though there was whitespace. Changing it to "Single" fixed the issue.
  • 这些属性只存在于属性窗口中,由IExtenderProvider接口提供魔术。 它们在运行时不存在。 扩展属性是: ColumnSpan。 运行时:GetColumnSpan()和SetColumnSpan() 行跨度。 运行时:GetRowSpan()和SetRowSpan() 行。 运行时:GetRow()和SetRow() 细胞。 运行时:GetCellPosition()和SetCellPosition() 柱。 运行时:GetColumn()和SetColumn() 显然,TLP是高度优化的,可供 ...
  • 您必须访问ColumnStyles集合的索引: With TableLayoutPanel1.ColumnStyles(1) .SizeType = SizeType.Absolute .Width = 32 End With 如果您尝试设置单行的宽度,那么除非您使用SetColumnSpan跨列来使多列成为单个列,否则这种情况确实无法实现。 这需要将控件放置在单元内。 You would have to access the index of the ColumnStyles collectio ...
  • 要在设计器中执行此操作,您需要使用第三个空行,假设您要交换第1行和第2行。 添加一个空行3。 从第1行>第3行移动控件 从第2行>第1行移动控件 从第3行>第1行移动控件 删除第3行 是的,这是一种解决方法,但它完成了工作。 或者,您可以在designer.cs文件中更改代码。 在那里你可以改变以下内容: this.myTableLayout.Controls.Add(this.myLabel1, 0, 0);//Change the order of these items. this.myTableLa ...
  • 我不会说有更好的方法,除了你的代码有一些缺陷。 你可以依靠Linq来使它更简洁,但这可能不够优雅,而且可读性较差,而且根本不可调试,因为你不应该使用太多的Linq做这种事情(我个人喜欢它! )。 您应该对现有代码执行以下操作: private void RemoveEmptyRows() { for (int row = tablePanel.RowCount -1; row >= 0; row--) { bool hasControl = false; fo ...
  • 创建一个List(Of List(Of Control)) ,然后可能使用TypeOf根据它实际的控件进行选择。 例如: If TypeOf ctl Is ComboBox Then AddHandler CType(ctl, ComboBox).SelectedIndexChanged, AddressOf Handler1 ElseIf TypeOf ctl Is TextBox Then AddHandler CType(ctl, TextBox).TextChanged, Address ...
  • 看看“Control.SetBoundsCore”是否可以帮到你。 您必须创建自己的面板才能使用它。 看来您的问题的原因是遵循代码行 this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; See if "Control.SetBoundsCore" can help you. You will have to create your own panel to use it then. It seems the reason o ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。