Storm topology configuration

后端 未结 7 2069
南方客
南方客 2021-02-05 10:29

How do you provide a custom configuration to a storm topology? For example, if I have a topology that I built that connects to a MySQL cluster and I want to be able to change w

7条回答
  •  醉话见心
    2021-02-05 11:05

    What might actually serve you best is to store the configuration in a mutable key value store (s3, redis, etc.) and then pull that in to configure a database connection that you then use (I assume here you are already planning to limit how often you talk to the database so that the overhead of getting this config is not a big deal). This design allows you to change the database connection on-the-fly, with no need to even redeploy the topology.

提交回复
热议问题