Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
jpjust
Specialist
Specialist

Dev and Prod in single cluster

Hello All,

I have Dev and Prod in the same cluster.

After I develop an app in dev node, the app is published to Prod from QMC. (shares the same storage for the app)

After that I set up an reload task in qmc for the new published app. 

When the reload happens, the task uses the resources of Prod node, in other words, the task runs on the prod node.

Is there a way, to allow the task to run on Dev node? Once I am satisfied on the reload time / performance etc., I should be able to run the task in Prod node.

How can I achieve it?

Thanks

15 Replies
jpjust
Specialist
Specialist
Author

Hi Bastien,

Just this question came to my mind.

What would be the downside of having DEV and PROD in the same cluster? 

Can you please let me know when you have a chance?

Thanks

Bastien_Laugiero

Hello,

I would say that you need to be particularly careful with the setup in such cluster especially around security and access. If for example you don't want certain user to be able to access to certain DEV resources and only access to PROD resources. This is obviously not something you would face if the two environments are physically separated in two different cluster. However I still recommend this type of setup as it makes the workflow and administration of the platform way easier and is perfect to provide self service development to your users.

The other point you may want to consider is to have an additional "test" environment to test any infrastructure changes such as system configuration, upgrade, patch,... Obviously this is not something you can "test" in DEV before PROD as the two are running on the same cluster.

Hope this make sense! 

Bastien Laugiero
If a post helps to resolve your issue, please mark the appropriate replies as CORRECT.
jpjust
Specialist
Specialist
Author

Definitely makes sense. Good points Bastien. Thanks.

jpjust
Specialist
Specialist
Author

HI Bastien,

When we have this type of Architecture (Dev and Prod on same cluster), as you know, we have Work space and streams on Prod.

When logged on to dev hub - we can see work, published folders and underneath we can see all the streams on prod 

Similarly when logged on to Prod hub - we can see work, published folders and underneath we can see all the streams on prod 

Question is : When an app is published from work to stream on prod, does the app should have 2 copies in the App folder. Our app folder is  an n/w drive  but I can see just one copy of the app.

Won't there be multiple copies, one for work space and another one for prod stream. Can you please shed some light on this? 

Thanks

Bastien_Laugiero

Hello!

Great question and the answer is yes and no. It depends on which action you are doing (A simple publish or a Publish and Replace). What's important to remember is that these actions of publishing application happen at a logical level (an update in the database) and not a physical level meaning nothing happens at storage level. 

Basically when developing an application here is the typical workflow:

  • User develop an app in "My Work"
  • Once ready, application is published to a stream -> App appears in the Stream and disappear from "My work" so here only one version of the application exist at storage level
  • If additional updates needs to be made, published app is duplicated by the developer -> a duplicated version of the published app is now in "My Work" meaning that now you have two application in your app folder
  • Developer update the duplicated version of the application
  • Once ready, developer Publish and Replace the published app by the duplicated version -> In this case yes the duplicated version of the application will still exist in "My Work" and therefore in your storage. 

You can observe this behavior by following this workflow and observing the AppID for your applications. In your storage folder, each app is names after there AppIDs.

Hope this clarify things!

Bastien Laugiero
If a post helps to resolve your issue, please mark the appropriate replies as CORRECT.
jpjust
Specialist
Specialist
Author

Great, Thanks much Bastien. This clarifies.