问题标签 [mesos-chronos]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
mesos - 如果我们使用 Chronos,是否需要 Mesos master?
假设我有 1 台 Chronos 机器,1 台 Mesos 主机在另一台机器上运行,Mesos 从机在另一台机器上运行(总共 3 台机器)。
如果我停止 Mesos 主节点,Mesos 从节点是否仍会继续工作(并在未来承担更多任务以执行),Chronos 会像 Mesos 从节点的主节点一样,还是总是需要 Mesos 主节点?
+1 获取一些文档链接,以深入和清晰地理解 Chronos-Mesos 交互。提前致谢。
1 个更快速的问题:如果 Mesos 从站停止,Mesos 主站是否也会执行从站功能(我的意思是任务执行)?
mesos - Apache Chronos 架构说明
我想看看是什么让 Chronos 比 Crons 更好?我无法完全理解它的作业调度和执行架构。
具体来说,这些是我不清楚的有关 chronos 架构的问题。
- 在一份 Chronos 文档中,我读到由于 crons 具有 SPoF,因此 crons 不好,而 cronos 更好。chronos 如何避免 SPoF?
- Chronos 中的作业计划保存在哪里?它是否为此维护某种数据库?
- 如何触发计划的作业,谁向 Chronos 发送事件来触发作业?
- chronos 是否触发了依赖作业,如果是,chronos 甚至如何知道父作业何时完成?它可以区分失败的工作和完成的工作吗?
- 我看到 chronos 中的作业是使用 Json 格式定义的,任何使用 JSON 的原因,而不是任何其他格式,如 YAML、Apache Config 等。
- chronos 中的作业可以有多个命令吗?如果是,所有这些不同的命令会在集群中的同一台机器上执行,还是 Chronos 甚至可以在集群中不同机器的作业中启动不同的命令?可以并行启动作业中的这些多个命令吗?
- 如果 mesos 已经具备调度能力,那么为什么还需要 Chronos?Chronos 可以在没有 Mesos 的情况下运行吗?
- Chronos 是否支持基于事件的调度?例如,在创建文件“x”等时运行我的工作。
- 作业的异步运行在 Chronos 中意味着什么?
任何人都对理解 Chronos 的架构有很好的参考?
mesos - chronos 不是集中式调度程序吗?
为什么 chronos 被称为分布式和容错调度器?据我了解,只有一个调度程序实例正在运行来管理作业计划。
根据 Chronos 文档,在内部,Chronos 调度程序主循环非常简单。
模式如下:
Chronos 从状态存储中读取所有作业状态(ZooKeeper)
作业在调度程序中注册并加载到作业图中以跟踪依赖关系。
- 作业被分成一个列表,这些列表应该在当前时间运行(基于主机的时钟),以及那些不应该运行的。
- 要运行的作业列表中的作业已排队,一旦有足够的报价可用,就会启动。
- Chronos 将休眠直到下一个作业计划运行,并从第 1 步重新开始。
请高手给点意见?
mesos - chronos 3.0.3 starts jobs instantly instead of running it on their scheduled time
I am using chronos 3.0.3. When I deploy jobs, it starts running all the jobs instantly on mesos slaves. I want chronos to run only on jobs' scheduled times and not instantly.
How can I configure to prevent running jobs instantly ? If someone can provide any pointer as in where in the chronos code, it is scheduling to run immediately, that will also be a great help.
I have defined epsilon of just 30 minutes in all the jobs, but it does not help; and run all the jobs.
These are all scheduled jobs and not dependent jobs.
time - ISO 8601 重复间隔:每月最后一天
是否可以根据 ISO 8601 定义每月最后一天的重复间隔?
我需要这个来完成几个Mesos/Chronos工作。
datetime - 我可以在 iso8601 日期时间中定义确切的工作日来安排工作吗?
我现在拥有的日期时间:
"schedule": "R/2017-10-05T17:21:00/PT15M"
现在这项工作安排为每 15 分钟一次(按时间),但如果我想在某个时间每天执行 3 次,并且只在周一 - 周五执行?
可以用这种格式定义吗?
mesos - 如何修复以下马拉松身份验证错误
我已经使用以下方法设置了 3 个节点 mesos 集群:如何在 Ubuntu 14.04 上配置生产就绪的 Mesosphere 集群(已编辑)
下一步是验证 Marathon。为此我正在使用: 框架身份验证
只是想知道我使用的是正确的 URL,还是需要在使用该 URL 之前进行任何配置?(已编辑)
但是马拉松没有得到认证。我是否错过了任何步骤/配置
mesos - 我在哪里可以找到 Mesos Slave 机器上的“stdout”和“stderr”日志文件?
我正在尝试访问 Mesos Slave 机器中我的 cron 任务的回显和打印日志。我可以从 GUI 中看到stdout和stderr日志,但似乎无法在机器上找到它们。到目前为止,我尝试探索该位置/var/logs/mesos
。这些日志文件位于何处?
mesos - Modifying number of tasks executed on mesos slave
In a Mesos ecosystem(master + scheduler + slave), with the master executing tasks on the slaves, is there a configuration that allows modifying number of tasks executed on each slave?
Say for example, currently a mesos master runs 4 tasks on one of the slaves(each task is using 1 cpu). Now, we have 4 slaves(4 cores each) and except for this one slave the other three are not being used.
So, instead of this execution scenario, I'd rather prefer the master running 1 task on each of the 4 slaves.
I found this stackoverflow question and these configurations relevant to this case, but still not clear on how to use the --isolation=VALUE
or --resources=VALUE
configuration here.
Thanks for the help!