Kogito with Infinispan in embedded mode

14 views
Skip to first unread message

Anthony Villano

unread,
Feb 9, 2021, 5:45:41 PMFeb 9
to Kogito development mailing list
Hello All,

Has anyone tried this ? Is this supported yet ? Not able to find any documentation.

Thanks,
Anthony

Cristiano Nicolai

unread,
Feb 9, 2021, 8:15:25 PMFeb 9
to Kogito development mailing list
Hi Anthony,

Running Infinispan in embedded mode is not something that is supported at this stage but the persistence abstraction is easily pluggable so it can be done.
From what I recall Quarkus does not support Infinispan in embedded mode, so there would be a limitation to run in native mode and also considering that we support running in memory and file system based persistence I would imagine those would cover similar use case as running Infinispan embedded.
What's your perspective on using embedded instead of the remote one?


--
You received this message because you are subscribed to the Google Groups "Kogito development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kogito-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kogito-development/51d80b0f-cdcd-4ced-85f0-b7f03fadba0fn%40googlegroups.com.


--
Best regards,

Cristiano Nicolai

Anthony Villano

unread,
Feb 9, 2021, 8:43:02 PMFeb 9
to Kogito development mailing list
Hi Cristiano,

Many thanks for your reply.

I am trying to do a POC with Kogito using Infinispan on OpenShift. The image is not available to pull within my organization internal or vendor registries.
I may just have the server run locally for now and deploy my Quarkus app to OpenShift with Infinispan client pointing to my local.

Thanks,
Anthony

Cristiano Nicolai

unread,
Feb 9, 2021, 8:49:48 PMFeb 9
to Kogito development mailing list
Fair enough.

If you run into issues with that setup, I think the easiest setup could be to switch to file-based persistence for your PoC, that way you could avoid an external service dependency.

Anthony Villano

unread,
Feb 9, 2021, 9:04:31 PMFeb 9
to kogito-de...@googlegroups.com
Understood. Makes sense.

Thanks again.

You received this message because you are subscribed to a topic in the Google Groups "Kogito development mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kogito-development/Nb3_MIu-Kqs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kogito-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kogito-development/CAOVo6cSjEMOaDgteu%3Dt89KvQbkoi5n__Z5ArdeVRJEiQT77C5Q%40mail.gmail.com.

Ricardo Zanini

unread,
Feb 10, 2021, 7:27:03 AMFeb 10
to kogito-de...@googlegroups.com
Hey Anthony! 

Just curious. Have you tried deploying the app with Kogito Operator integrating with Infinispan Operator?

Cheers!

--
Zanini

Anthony Villano

unread,
Feb 10, 2021, 8:59:39 AMFeb 10
to kogito-de...@googlegroups.com
Unfortunately, I don't have admin rights and in my company for all Openshift environments it's not installed. They have plans to add it in the next couple of months. 

Thanks!
-Anthony

Ricardo Zanini

unread,
Feb 10, 2021, 9:22:21 AMFeb 10
to Kogito development mailing list
Thanks, Anthony! Please keep me posted. We understand that the restriction of being an admin of the cluster to install operators can be a problem in specific scenarios.

Zanini


Anthony Villano

unread,
Feb 24, 2021, 12:37:25 AMFeb 24
to kogito-de...@googlegroups.com
Hello All. 
I managed to get my kogito service running with mongodb as the persistent layer. I’m also able to use the data index service mongo version with Kafka. 

One issue I’m having is, I can’t query my domain object in graphql. It’s not finding it in the schema.

 It finds the defaults ones such as processinstances, usertaskinstances, etc.

Any guidance would be appreciated.

Thanks,
Anthony 

Daniele Zonca

unread,
Feb 24, 2021, 4:55:40 AMFeb 24
to Kogito development mailing list
Hi,

As far as I remember there was a bug in mongo runtime persistence and no proto files were generated. It has been fixed now and it will be part of Kogito 1.3 that is going to be released (probably later this week).
For now the only workaround I see is configure kogito runtime with infinispan persistence, compile, take proto generated files, manually deploy them to data index and then restore mongo persistence.

Daniele

Anthony Villano

unread,
Feb 24, 2021, 6:17:31 AMFeb 24
to kogito-de...@googlegroups.com
Thanks Daniele for the quick reply.
I’m running the data index jar that I downloaded from the repository. 

When you say -  

“take proto generated files, manually deploy them to data index”

What is the procedure for manually deploying them?


Thanks,
Anthony 

Daniele Zonca

unread,
Feb 24, 2021, 7:15:39 AMFeb 24
to Kogito development mailing list
Hi,

Have a look to this guide

You cannot reuse the scripts because are specific for that example but each step is described and it is the same: folder where to find proto generated and command line to use to start data-index-service

HTH
Daniele

Anthony Villano

unread,
Feb 24, 2021, 11:39:55 AMFeb 24
to kogito-de...@googlegroups.com
Thanks Daniele. This was very helpful.
I was able to get it working ! :)

Best Regards,
Anthony



Reply all
Reply to author
Forward
0 new messages