Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Is there an API interface for gs-agent.sh operations

I am trying to see if there is any API interface for gs-agent script. I would like to create several zoned gsa's through the API.

asked 2019-09-26 20:14:52 -0500

vinny gravatar image
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

Starting a gsa is not supported. The admin api and REST manager only have APIs to discover existing gridserviceagents.

answered 2019-09-27 14:22:10 -0500

Dixson Huie gravatar image
edit flag offensive delete link more

Comments

Any plan to support this in the future - This is very important to manage your infrastructure in the cloud.

vinny gravatar imagevinny ( 2019-09-27 15:38:46 -0500 )edit

Our product supports Kubernetes. You can deploy an application on Kubernetes using helm and helm charts. See https://docs.gigaspaces.com/latest/ad...

Dixson Huie gravatar imageDixson Huie ( 2019-10-08 14:45:49 -0500 )edit

I am planning to write a terraform provider for xap and I guess I would need the API interface to start several GSAs. I haven't taken a look at helm yet but I feel the API interface to create GSA would be a stepping stone in the IAC (Infrastructure as Code ) area.

vinny gravatar imagevinny ( 2019-10-13 01:18:25 -0500 )edit
0

I dont think this option is supported using the Rest interface but I was trying to enhance the REST interface to see if I can create the zone based custom GSA using an API so I went ahead to explore the Java API to start a GSA but apparently it fails to start with this error.

before that it complained on not having /required directory inside my .m2\repository\org\gigaspaces which I created but seems like its looking for some spring-jcl jar.

Is starting a GSA not supported using API ?? and we have to rely only on gs-agent script which is getting renamed to xap.

2019-09-26 22:12:50,197 CONFIG [com.gigaspaces.logger] - Log file: ~.m2\repository\org\gigaspaces\logs\2019-09-26~22.12-gigaspaces-gsa-10.0.75.1-3144.log 2019-09-26 22:12:50,170 INFO [com.gigaspaces.start] - Starting ServiceGrid [user=xxxxx, command="com.gigaspaces.start.services="GSA" gsa.gsc 0 gsa.gsm 0 gsa.gsm_lus 0 gsa.lus 0 gsa.global.gsc 1 gsa.global.gsm 1 gsa.global.gsm_lus 0 gsa.global.lus 1"] 2019-09-26 22:12:50.272 WARN 3144 --- [-GSAgentStarter] com.gigaspaces.start : Missing JAR file

java.io.FileNotFoundException: Folder ~.m2\repository\org\gigaspaces\xap-common\required\ should contain exactly one jar that starts with spring-jcl- at com.gigaspaces.start.SystemConfig.findFilenameByPrefix(SystemConfig.java:408) ~[xap-common-14.5.0.jar:na] at com.gigaspaces.start.SystemConfig.getDefaultCommonClassLoaderClasspath(SystemConfig.java:307) ~[xap-common-14.5.0.jar:na] at com.gigaspaces.start.SystemConfig.getPlatformJars(SystemConfig.java:364) ~[xap-common-14.5.0.jar:na] at com.gigaspaces.start.SystemBoot.loadPlatform(SystemBoot.java:163) ~[xap-common-14.5.0.jar:na]

answered 2019-09-27 00:23:04 -0500

vinny gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-09-26 20:14:52 -0500

Seen: 163 times

Last updated: Sep 27