PDA

View Full Version : ADL package uids


earthgecko
02-25-2009, 03:42 PM
From the documentation it would seem that:

uid= An ID assigned to the application at the time it was installed. This ID is an integer value in the range 1..254 and is unique among the applications installed on the same cluseter of servers.
(http://doc.3tera.com/AppLogic24/AdvADLPackageDescriptor.html)

So this means if I scipt an application build, then I need to know what uids exist on the cluster (srv1,srv2) correct? How do I find this out, without looking through each object in the ADL for the entire grid?

What happens if I mistakenly add a uid that exists... or wil it not let me...

I have a feeling this uid is quite fundamental to the grid... how fundamental... I would rather not guess..

grid_shell> uid list --all (--verbose)

Maybe?? Or is that off base..?

Thanks

PeterNic
03-02-2009, 12:46 AM
Earthgecko,

I am not sure I understand what you are trying to do...

The application ID (uid) has been expanded to 1024 in default grid installations. The application list command does show the app ID (use the -v option). It is also available when you do "app get_desc <app_name>" as the uid=NN field.

The application ID must be unique among applications; AppLogic ensures uniqueness during all applicationl "constructor" operations: create, copy, migrate, import, provision, etc. As long as you use one of them -- which I assume you do -- there will be no duplicate. If you programmatically edit the descriptor, please make sure the uid field is preserved.

(Note: the physical servers, srv1, srv2, etc., are entirely apropos here -- the application ID is grid-scope)

Does this help?

Regards,
-- Peter

earthgecko
04-05-2009, 04:38 AM
Hi Peter

Sorry for my lengthy delay in replying, I finished on the first phase the the AppLogic based project and was working on an EC2 project. Grids, clouds it is all confusing. We wait for the day when it is all the same :)

Further to this soon realised that these uid's are automatically created and that what I was considering would not work anyhow. Thanks for the response.

Thanks

PeterNic
04-07-2009, 12:49 AM
earthgecko,


Sorry for my lengthy delay in replying

No problem.


Further to this soon realised that these uid's are automatically created and that what I was considering would not work anyhow

Happy the uid's were easier than anticipated. If you want to let me know what you had in mind, we can try finding a way to make it work - love the challenge.

Regards,
-- Peter