将Storm HA Nimbus作为单个实例运行(Running Storm HA Nimbus as a single instance)
我正在使用Storm 1.0.2。 目前我们有一个小型拓扑,我们只需要运行一个Nimbus实例。 但是,在极少数情况下,我们唯一的Nimbus实例会因磁盘丢失而崩溃,因此创建一个新实例将无法工作。 新实例将转到ZK,由于缺少拓扑数据,将永远不会被选为Leader并且永远不会再次出现。 这是我们面临的问题。 我能想到的唯一工作就是将这些数据存储在一个单独的永久磁盘上,这样即使我们唯一的Nimbus实例发生故障,我们也不会丢失拓扑罐,下一个实例可以成为ZK的Leader,没有任何问题。
我错过了什么吗? 有没有其他方法来重置ZK,除了删除nimbus数据( 以某种方式删除/ storm / nimbus目录不起作用 )? 是否有任何配置只能在暂存环境中禁用Nimbus中的领导者选举?
I am using Storm 1.0.2. Currently we have a small topology and we only want 1 instance of Nimbus running. However, in the rare event of our only Nimbus instance going down with some disk loss, brining up a new instance will never work. The new instance will go to ZK and because of missing topology data, will never be elected Leader and will never come up again. This is the issue we faced. The only work around I can think of is to store this data on a separate persistent disk so even if our only Nimbus instance goes down we don't lose topology jars and the next instance can be made Leader by ZK without any issues.
Am I missing something? Is there any other way to reset the ZK other than by deleting the nimbus data (somehow deleting the /storm/nimbus dir did not work) ? Is there any config to disable leader election in Nimbus for 1 instance only on staging environments?
原文:https://stackoverflow.com/questions/43753495
最满意答案
请确保在已部署的环境中安装了所需的字体。
Please ensure that required font is installed in the deployed environment.
相关问答
更多-
活动报告表行高(Active Reports Table Row Height)[2022-02-23]
您要确保的第一件事是您当前正在使用CPL报告而不是FPL报告。 固定页面布局(FPL)报告不允许增加控件,因此表格不会自动增长以容纳长文本。 所以我建议你尝试这些步骤。 在Visual Studio中打开设计器后,转到“报告”菜单并选择“转换为CPL”选项。 转换后,选择表中的所有单元格并确保其CanGrow属性设置为true。 一旦进行了这些更改,表格将自动增长以适应其中的长文本。 除此之外,我建议您查看此链接以了解有关CPL和FPL报告类型的更多信息。 我希望这有帮助。 First thing whic ... -
看起来您的代理程序没有配置为具有这些项目键所需的任何psql.* userparameters,除非您在某些包含的文件中使用它们。 您应该从获得此模板的相同位置获取用户参数配置。 看起来您已经将模板与相关主机取消链接 - 但这可能不是一个好主意,最好保持模板链接。 并且考虑在官方手册中阅读有关Zabbix用户参数的内容,它应该更清楚地说明它应该如何工作。 有人建议libzbxpgsql 可加载模块应该提供这些项密钥。 如果是这样,将代理DebugLevel参数设置为4并检查更多有用的错误消息可能会有所帮助, ...
-
确保您没有运行Visual Studio 2010 Express Edition。 ActiveReports不能与Visual Studio的Express版本一起使用,因为它们不支持包。 有关更多信息,请查看要求页面。 Make sure you are not running the Visual Studio 2010 express edition. ActiveReports cannot be used with the express edition of Visual Studio si ...
-
C / CLI中的活动报告(active reports in C /CLI)[2022-09-12]
生成基于代码的设计器不能与C ++ / CLI一起使用。 您也无法使用C ++在报告中编写“脚本”。 但是,您可以将报表设计为基于XML的报表(rpx) ,然后您不应该通过SectionReport类(例如)实例化和调用C ++中的报表 。 类似于以下内容: GrapeCity::ActiveReports::SectionReport ^sectionReport = gcnew GrapeCity::ActiveReports::SectionReport(); System::Xml::XmlText ... -
根据文档 ,范围不能是子Subtree ,搜索过滤器必须是(objectClass=*)才能进行持久搜索。 UPDATE: I found this: https://forums.oracle.com/thread/1157474?tstart=0 It basically says that AD does not support this, and that there’s no way I can make the above code work. However, it does give out ...
-
活动报告PDF生成(Active Reports PDF Generation)[2022-04-03]
kmarks, 您确实可以非常轻松地执行此操作,您可以使用相同的DataTable作为报表的数据源,方法是将报表的datasource属性设置为DataTable。然后,您只需要将ActiveReports TextBox控件添加到报表的“详细信息”部分,然后将其DataField属性设置为数据表中的列名,以将字段从数据表绑定到TextBox控件。您可以在设计时或后面的代码中执行此操作 完成此操作后,只需创建报表实例,在此实例上调用Run the method,然后将报表文档导出为PDF。 我还建议你通过以 ... -
我最终得到以下代码。 我真的不知道为什么,但它有效。 Dim objs As New List(Of Teste)() objs.Add(New Teste With {.Nome = "TESTE1", .Valor = 15}) objs.Add(New Teste With {.Nome = "TESTE2", .Valor = 22}) objs.Add(New Teste With {.Nome = "TESTE3", .Valor = 10}) objs.Add(New Teste With { ...
-
如果使用“格式”事件根据第一个文本框高度设置其他文本框的高度,则无法获得正确的结果。 我建议你宁愿使用“BeforePrint”事件来设置高度。 public void Detail_BeforePrint() { this.TextBox2.Height = this.TextBox1.Height; this.TextBox3.Height = this.TextBox1.Height; } 希望这可以帮助。 You will not get the correct resul ...
-
活动报告文本框控件(Active reports textbox control)[2023-08-07]
您可以在触发部分的Format事件之前发生的每一行的数据绑定之后获取值。 在detail_Format事件中。 您可以使用文本框值或文本属性txtMyTextbox.Text检索值(返回将在报表中呈现的格式化文本)txtMyTextbox.Value(返回绑定值,不进行格式设置) 希望这可以帮助。 http://activereports.grapecity.com You can get the value after the data binding of each row which happens ... -
请确保在已部署的环境中安装了所需的字体。 Please ensure that required font is installed in the deployed environment.