Managed to get it working using your first technique.  (Thanks!)  Issue is,
one of the selling points of app service is scaling; you deploy webapps, and
can automatically scale them to multiple instances.  Azure automatically
load balances and all you have to maintain is a single deployment.  So using
the above configuration, first/single instance works, but scaling does not
work, as all scaled instance share the same file system and so a single
configuration file yet different IPs... 

So unless I'm missing something, the JClouds option seems the only valid
choice for App Service, scaling and Ignite.  But I can't seem to get it
working...  After resolving some class/jar issues, still getting some
binding issues... It doesn't seem to be related to TcpDiscoveryCloudIpFinder
or AzureBlob, just some plain network errors:
- "Failed to resolve local host to addresses: 0.0.0.0/0.0.0.0"
- "No network addresses found (is networking enabled?)." 

Shouldn't using the TcpDiscoveryCloudIpFinder/JCloud bypass all of those?  I
think JClouds might never have been tested in App Service...  

=================================================================
                          <property name="discoverySpi">
                            <bean 
class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
                              <property name="ipFinder">
                                <bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.cloud.TcpDiscoveryCloudIpFinder">
                                  <property name="provider" value="azureblob"/>
                                  <property name="identity" value="xxx"/>
                                  <property name="credential" value="xyz"/>
                                </bean>
                              </property>
                            </bean>
                          </property>

18-May-2016 12:38:50.392 SEVERE [localhost-startStop-1]
org.apache.catalina.core.StandardContext.listenerStart Exception sending
context initialized event to listener instance of class
com.k2.rls.j2ee.ContextListener
 class org.apache.ignite.IgniteException: Failed to start manager:
GridManagerAdapter [enabled=true,
name=org.apache.ignite.internal.managers.communication.GridIoManager]
        at
org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:882)
        at org.apache.ignite.Ignition.start(Ignition.java:349)
        at com.k2.rls.IgniteService.start(IgniteService.java:18)
        at
com.k2.rls.j2ee.ContextListener.contextInitialized(ContextListener.java:13)
        at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4729)
        at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
        at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1101)
        at
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1786)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to start
manager: GridManagerAdapter [enabled=true,
name=org.apache.ignite.internal.managers.communication.GridIoManager]
        at
org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1505)
        at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:859)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1618)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1485)
        at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:965)
        at
org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:892)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:784)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:705)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:576)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:546)
        at org.apache.ignite.Ignition.start(Ignition.java:346)
        ... 15 more
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to get SPI
attributes.
        at
org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:233)
        at
org.apache.ignite.internal.managers.communication.GridIoManager.start(GridIoManager.java:236)
        at
org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1500)
        ... 25 more
Caused by: class org.apache.ignite.spi.IgniteSpiException: Failed to resolve
local host to addresses: 0.0.0.0/0.0.0.0
        at
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.getNodeAttributes(TcpCommunicationSpi.java:1452)
        at
org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:216)
        ... 27 more
Caused by: class org.apache.ignite.IgniteCheckedException: No network
addresses found (is networking enabled?).
        at
org.apache.ignite.internal.util.IgniteUtils.resolveLocalAddresses(IgniteUtils.java:1834)
        at
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.getNodeAttributes(TcpCommunicationSpi.java:1439)
        ... 28 more




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Azure-App-Service-compatible-tp4743p5020.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to