You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "renatoathaydes (via GitHub)" <gi...@apache.org> on 2023/03/08 17:52:55 UTC

[GitHub] [ignite] renatoathaydes opened a new issue, #10588: Embedding Ignite 3

renatoathaydes opened a new issue, #10588:
URL: https://github.com/apache/ignite/issues/10588

   I am trying to upgrade our codebase from Ignite 2 to 3. However, I cannot find any guides on how to do it.
   
   We use the Java API.
   
   Our Kotlin code looks something like this , currently:
   
   ```kotlin
   import org.apache.ignite.*
   
   // .. some config setup
   
              val igniteDiscoverySpi: DiscoverySpi = createDiscoverySpi(clusterConfiguration, configuration, ports)
   
               val config = ApacheIgniteConfiguration().apply {
                   igniteInstanceName = configuration.id()
                   localHost = "0.0.0.0"
                   consistentId = configuration.serverInformation.id
                   clientConnectorConfiguration = clientConnectorConfig
                   discoverySpi = igniteDiscoverySpi
                   communicationSpi = igniteCommunicationSpi
                   isClientMode = false
                   shutdownPolicy = ShutdownPolicy.GRACEFUL
                   isPeerClassLoadingEnabled = false
                   metricsLogFrequency = if (configuration.enableCacheStatistics) 30_000 else 0
                   gridLogger = IgniteLoggerFactory.createLogger(configuration)
                   workDirectory = distributedCacheWorkingDirectory(configuration.id())
                   if (clusterConfiguration != null) {
                       sslContextFactory = TlsContextFactory(clusterConfiguration)
                   }
               }
   
               val ignite = try {
                   Ignition.start(config)
               } catch (e: IgniteException) {
                   // error handling
               }
   ```
   
   I am aware that the discovery mechanism, in particular, has changed a lot... but I cannot even find the `Ignite` class on version 3 (or most of other classes needed)... could you post code that's similar to the above for Ignite 3, or is there code somewhere I can look?
   
   The documentation I found is currently nearly empty: : https://ignite.apache.org/docs/3.0.0-beta/
   
   We know it's a beta version, but we need to release a feature in a few months that will use Ignite, and we want to see if Ignite 3 will work for our use case (we have had many issues with Ignite 2, specially regarding cluster discovery, and are hoping Ignite 3 will be helpful).
   
   Anything you can provide to help us would be appreciated! Thanks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ignite] ptupitsyn commented on issue #10588: Embedding Ignite 3

Posted by "ptupitsyn (via GitHub)" <gi...@apache.org>.
ptupitsyn commented on issue #10588:
URL: https://github.com/apache/ignite/issues/10588#issuecomment-1463420949

   Ignite 3 does not have a proper API for embedded mode yet. We are not sure if it should exist at all. Current idea is to provide client API only. 
   
   >  we need to release a feature in a few months that will use Ignite, and we want to see if Ignite 3 will work for our use case
   
   I think it might be too early to use Ignite 3 in prod at this point, let's wait for beta 2.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ignite] ptupitsyn closed issue #10588: Embedding Ignite 3

Posted by "ptupitsyn (via GitHub)" <gi...@apache.org>.
ptupitsyn closed issue #10588: Embedding Ignite 3
URL: https://github.com/apache/ignite/issues/10588


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org