VMware Cloud Community
lurims
Enthusiast
Enthusiast
Jump to solution

How to increase the Workflow Token limit beyond default 100

in vRA 7.X control center logging tab used to provide to increase the global worklfow tokens settings for last # of executuons/workflow tokens.  It seems that is missing in vRA 8.6.X.  Any idea how to increase this to a different number?

wfruns.JPG

0 Kudos
2 Solutions

Accepted Solutions
imtrinity94
Enthusiast
Enthusiast
Jump to solution

I think it is there as always.

- Go to Advanced Options in vRO Control Center

- Change the value of Maximum number of preserved runs per workflow to your needs. (I set it to 10)

imtrinity94_0-1668186001068.png

- Click Save and wait for server to restart.


Mayank Goyal
vRO Engineer
https://www.linkedin.com/in/mayankgoyal1994/
https://cloudblogger.co.in/

View solution in original post

0 Kudos
imtrinity94
Enthusiast
Enthusiast
Jump to solution

If that doesn't work by any chance. Then, you can try this other method.

- Go to System Properties in vRO Control Center

- Add a new property ch.dunes.task.max-workflow-tokens with value of your choice

imtrinity94_0-1668187478428.png

- Click Add and Click Save changes and wait for server to restart.

 

 


Mayank Goyal
vRO Engineer
https://www.linkedin.com/in/mayankgoyal1994/
https://cloudblogger.co.in/

View solution in original post

7 Replies
imtrinity94
Enthusiast
Enthusiast
Jump to solution

I think it is there as always.

- Go to Advanced Options in vRO Control Center

- Change the value of Maximum number of preserved runs per workflow to your needs. (I set it to 10)

imtrinity94_0-1668186001068.png

- Click Save and wait for server to restart.


Mayank Goyal
vRO Engineer
https://www.linkedin.com/in/mayankgoyal1994/
https://cloudblogger.co.in/
0 Kudos
imtrinity94
Enthusiast
Enthusiast
Jump to solution

If that doesn't work by any chance. Then, you can try this other method.

- Go to System Properties in vRO Control Center

- Add a new property ch.dunes.task.max-workflow-tokens with value of your choice

imtrinity94_0-1668187478428.png

- Click Add and Click Save changes and wait for server to restart.

 

 


Mayank Goyal
vRO Engineer
https://www.linkedin.com/in/mayankgoyal1994/
https://cloudblogger.co.in/
lurims
Enthusiast
Enthusiast
Jump to solution

Thanks that helped.

0 Kudos
lurims
Enthusiast
Enthusiast
Jump to solution

Do you know if an API call exists for these settings to change?

0 Kudos
imtrinity94
Enthusiast
Enthusiast
Jump to solution

Yes. We can use properties-controller in the vco-controlcenter API for this purpose. Remember to use root creds to login.

imtrinity94_0-1668535929281.png

POST /properties

body = 

{ 
   "error": "string", 
   "id": "string",
   "properties": [
     {
       "key": "ch.dunes.task.max-workflow-tokens",
       "value": "10",
       "description": "Max WF Tokens"
     }
   ]
 }

OR curl: 

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \ 
   "error": "string", \ 
   "id": "string", \ 
   "properties": [ \ 
     { \ 
       "key": "ch.dunes.task.max-workflow-tokens", \ 
       "value": "10", \ 
       "description": "Max WF Tokens" \ 
     } \ 
   ] \ 
 }' 'https://vro_fqdn.domain.local/vco-controlcenter/api/properties'

 


Mayank Goyal
vRO Engineer
https://www.linkedin.com/in/mayankgoyal1994/
https://cloudblogger.co.in/
imtrinity94
Enthusiast
Enthusiast
Jump to solution

Important: In case, there are already existing properties added in your vRO, follow the below steps. Otherwise, above step would be enough.

Just do a GET on /properties and save its output. That output has already existing properties on your vRO. We have to pass them as well in the POST body.

{ "error": null, "id": "null", "properties": [ { "key": "o11n.plugin.SQL.classpath", "value": "/var/run/vco/plugins/SQL/lib/mysql-connector-java-8.0.12.jar", "description": "SQL connector" }, { "key": "com.vmware.js.allow-local-process", "value": "true", "description": "allow to execute local processes" }, { "key": "com.vmware.o11n.sso.basic-authentication.enabled", "value": "true", "description": "Basic Authentication for web service" }, { "key": "com.vmware.vro.extensions.profiler.enabled", "value": "true", "description": null }, { "key": "ch.dunes.task.max-workflow-tokens", "value": "10", "description": "Max WF Tokens" } ] }

imtrinity94_0-1668536813378.png

This way you will preserve the existing properties.

Please mark as correct if it works for you. That would be great.


Mayank Goyal
vRO Engineer
https://www.linkedin.com/in/mayankgoyal1994/
https://cloudblogger.co.in/
lurims
Enthusiast
Enthusiast
Jump to solution

Thanks that helps a lot too

0 Kudos