cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

ThingWorx on kubernetes

seletz
4-Participant

ThingWorx on kubernetes

Hi all,

I'm currently getting ThingWorx to run on a kubernetes cluster.  I basically have it running, but so far only in a non HA setup.  The database -- I'm using postgreSQL -- is using a multiple nodes with master/slave failover etc., but ThingWorx runs in a single POD. 

 

I want to change that -- we need ThingWorx in a HA and Load Balanced setup.  For this to work I'm in the process of creating a kubernetes operator for ThingWorx.

 

Does anyone have some insight as of how the ZooKeeper / ThingWorx interaction works in the standard PTC HA setup?  I want to use native kubernetes primitives instead of having to spin up a ZooKeeper cluster.

3 REPLIES 3
PaiChung
22-Sapphire I
(To:seletz)

Not quite sure how you are looking to do the HA setup.

But with the zookeeper setup, there is a specific handle that allows Thingworx to be running but not connected to the Thingworx Storage. I apologize for not having the deep details on this.

So there is one instance fully up and running and others (1 or more) that are designated as 'standby' that have tomcat up and running, Thingworx initialized but are not connected to the Store so they don't have the model deployed etc.

A simpler HA setup would be to have tomcat NOT running and have it started when the leader goes down.

seletz
4-Participant
(To:PaiChung)

Hi -- sorry for the late answer :(

 

As for the HA setup -- that's what I feared.  Essentially TWX runs in a "hot spare" configuration.  I hoped that we could use the spares for read-only queries.

 

Today I saw this post:

https://community.ptc.com/t5/Talkin-ThingWorx/Ask-Kaya-How-can-I-deploy-ThingWorx-Docker-images-on-Kubernetes/gpm-p/575928

 

This is essentially what I *actually* need/want to do, will try that.

mgoel
17-Peridot
(To:seletz)

@seletz

 

Could you please confirm if your reply is answer of this post, So that we can mark it accept as solution for the benefit of others.

 

Regards-Mohit Goel

Announcements


Top Tags