Open chrismade opened 7 years ago
Couple things:
http://<ip-of-aws-box>:8080
and expect it to just work. There's various sling mappings that need to be in place if you want to do that. You could basically WebDAV into your Sling instance and change /etc/map values to match your IP, or you can change the values in the Slick source code and install again.Thanks, I guess [3] is the hottest trace, I was unaware of "mappings in slick will become" an issue, but the moment you mentioned it, it makes perfect sense - so, yes, using the dispatcher is already still on my list and will use it instead of my first plan to use the loadbalancer (mainly for SSL termination, not because I expect that much traffic) - give me a weekend or two to incorporate your hints into my plan above . sling internal test always works when starting with -Xmx1g - and for slick, according to your recommendation - it should be -Xmx2g - right?
I would start with -Xmx1g and go from there. I run my Slick instances at 1200m.
Hi Chris, I was trying to find my own route to a blog based on apache sling - IMHO this great software is completely underrated and I dislike the fact that I deal with AEM at work but used then wordpress for my own blog. So I found your project - I guess that is similar to your own story
My first idea (slick-2 without commenting option at that time) was to start an EC2 with java only for the time of writing a blog article (and stop it after publish) and deliver thru a EC2 micro/dispatcher which runs 24x7 maybe use cloud-based commenting (e.g. Disqus) later Now we have commenting built-in - Java has to be up 24x7 So I change my plans accordingly
This is my receipe so far for AWS:
1.) create a keypair (using AWS console)
2.) create a security group (using AWS console) allow inbound from "everywhere" (definitely requires finetung later when dispatcher and SSL termination on Elastic loadbalancer is up)
maybe debug port later
3.) Start an EC2 Instance Launch EC2 instance, type "t2.micro" (1CPU, 1GB RAM, 8GB rootfs) AWS Linux 64bit using security group created in [2] using keypair created in [1]
login via SSH as "ec2-user", testing the key from keypair, execute
sudo yum update
reboot from AWS console4.) create an EBS volume of ... 10 GB attach to the instance from [3] check with
dmesg
what device it is, in my case it is/dev/sdb
So next create a data partition of 100%
make it mountable
add this line at the end of the file
/dev/xvdf1 /sling ext4 defaults,nofail 0 2
:x
note: use
mount
to figure out if the device name has been mapped, like /dev/sdb into /dev/xvdb in this caseexit # root user
now back as "ec2-user" ... download sling-8
5.) Install and config required environment
sudo yum install git java-1.8.0-openjdk-devel
Then use the alternatives command to make Java 1.8 the default.
6.) Install Maven - a bit more complicated in AWS Linux
7.) clone slick-2
8.) start sling-8
java -version
check if it is really V8java -jar org.apache.sling.launchpad-8.jar start &
not sure here if there are better suitable parameter(s) I should consider
9.) Install slick-21
10.) Test in browser (from another PC)
http://<ip-of-aws-box>:8080
login as admin/admin
there is a built-in test option in the sling startpage - which fails (error 500, expected 201)
http://<ip-of-aws-box>:8080/author.html
is showing parts of the expected slick-2 blog page but no login
I assume it is a low memory but I don't know java (jre) well enough to fix it
Switching to a larger EC2 box with more RAM would be one option, but this one is already EUR 9 / Month and I also would like to have a Elastic loadbalancer (EUR18/Month) plus SSL certificates (yes, multiple! for free!) and it should NOT go too expensive as this is just a non-commercial hobby site
any hints?