With normal single-host licenses you can set the MarkLogic hostname to 
'localhost' via host-admin.xqy - handy for laptops that get their hostname from 
whichever dhcp server they might wake up near. If the license also says 
'localhost', then that would be ideal. I can tell you that the community 
license still works with 'localhost' and 5.0-1, but that type of license 
probably doesn't look at the hostname anyway.

Now, I haven't yet tried the express license setup, so I'm not sure what it 
uses for an enforcement mechanism. If it's something like a DNS reverse lookup, 
then I don't think it will work on EC2 without some heavy lifting. If DNS 
reverse lookup is the mechanism, then I also wouldn't expect Elastic IP to do 
the job: I think its reverse lookup would point to an AWS-managed load 
balancer. But I suppose you could run your own DNS to make it happy.

-- Mike

On 1 Nov 2011, at 20:05 , Lee, David wrote:

> I’m trying out the Express license on a Amazon EC2 instance.
> Everything thing works as expected *until *  I stop and  restart the 
> instance.   In Amazon EC2 this allocates a new hostname beyond my control.
> When ML starts it complains the license is not valid for this Host 
> (reasonable).
>  
> I tried several things to get this to work.
>  
> 1)      Use the linux “hostname” command and  /etc/services/network   
> settings to set the hostname to a static hostname
> 2)      Edited the hostname within the ML admin console
>  
> Still no go.   I can get the instance working again by requesting a new 
> license but I think that’s not a great solution.
> If I know how ML  decides what the “hostname” is I could probably work this 
> out.
>  
> My next attempt will be to assign a static IP (Amazon “Elastic IP”) to the 
> instance which depending on how ML decides what the hostname is might work …
> But I don’t want to risk looking like a hacker by requesting lots of licenses 
> trying to reverse engineer a solution.
>  
> Any suggestions ?
>  
>  
> ----------------------------------------
> David A. Lee
> Senior Principal Software Engineer
> Epocrates, Inc.
> [email protected]
> 812-482-5224
>  
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to