loading config from file and later add more cache config from code

classic Classic list List threaded Threaded
3 messages Options
himanshu himanshu
Reply | Threaded
Open this post in threaded view
|

loading config from file and later add more cache config from code

This post was updated on .
Hi,

I wanted to check if I can load initial config from a config file like

Ignition.start("file") then add more cache config from program?

I did not see any constructor for IgniteConfiguration which takes a file as
paramer.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
dmagda dmagda
Reply | Threaded
Open this post in threaded view
|

Re: loading config from command line and update cache config from code

Hi,

Yes, you can start the cluster with minimal configuration to ensure the nodes can auto-discover each other and after that create caches, tables on runtime. IgniteConfiguration accepts an absolute or relative path to your configuration.

-
Denis


On Thu, Apr 4, 2019 at 8:52 AM himanshu <[hidden email]> wrote:
Hi,

I wanted to check if I can load initial config from a config file like

Ignition.start("file") then add more cache config from program?

I did not see any constructor for IgniteConfiguration which takes a file as
paramer.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
ilya.kasnacheev ilya.kasnacheev
Reply | Threaded
Open this post in threaded view
|

Re: loading config from command line and update cache config from code

In reply to this post by himanshu
Hello!

You can use Ignition.loadSpringBean() and then stuff this bean with extra stuff :)

Regards,
--
Ilya Kasnacheev


чт, 4 апр. 2019 г. в 18:52, himanshu <[hidden email]>:
Hi,

I wanted to check if I can load initial config from a config file like

Ignition.start("file") then add more cache config from program?

I did not see any constructor for IgniteConfiguration which takes a file as
paramer.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/