cloud

Should I persist images on EBS or S3?

眉间皱痕 提交于 2019-11-27 16:54:34
I am migrating my Java,Tomcat, Mysql server to AWS EC2. I have already attached EBS volume for storing MySql data. In my web application people may upload images. So I should persist them. There are 2 alternatives in my mind: Save uploaded images to EBS volume. Use the S3 service. The followings are my notes, please be skeptic about them, as my expertise is not on servers, but software development. EBS plus: S3 storage is more expensive. (0.15 $/Gb > 0.1$/Gb) S3 plus: Serving statics from EBS may influence my web server's performance negatively. Is this true? Does Serving images affect server

Amazon EC2 - Swap root instance store device with EBS device

﹥>﹥吖頭↗ 提交于 2019-11-27 16:47:20
I have an EC2 instance with "instance store" device as a root device. Now, I would like to attach an EBS volume to that same instance, only that I want it to be the root device. Is that possible? What happens to the instance store device in such case? Thanks in advance You could migrate your running instance to an EBS backed AMI. Here's how I did it: Boot up a regular S3 AMI backed instance (or since you've already got an instance you're happy with, use that) Make an EBS volume of the same size as your root sda1 partition (currently the default is 10G for an m1.small and possibly others)

Databse architecture (single db vs client specific db) for Building Enterprise Web (RIA) application on cloud

…衆ロ難τιáo~ 提交于 2019-11-27 16:18:54
We are working on rewriting our existing RIA and redesigning our database to re-architect it's design. Now we have 2 opinions about database: (This choices are for SaaS based hosting.) 1) Individual database for each customer. 2) Single DB for all customers. We are expecting good amount of data, some of our customers have db size ranging from 2GB to 10GB. # of tables are around 100. Can I get an answer about which choice we shall go for? We are not thinking about NoSQL solution as of now but we are planning to support about 4-5 databases with JPA (Java Persistence API) which includes MySQL,

how to connect to the database in openshift application

旧时模样 提交于 2019-11-27 14:43:55
I did as following MySQL 5.1 database added. Please make note of these credentials: Root User: xxxxxxx Root Password: xxxxxxx Database Name: php Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/ You can manage your new MySQL database by also embedding phpmyadmin-3.4. The phpmyadmin username and password will be the same as the MySQL credentials above. phpMyAdmin 3.4 added. Please make note of these MySQL credentials again: Root User: xxxxxxx Root Password: xxxxxxx URL: https://php-doers.rhcloud.com/phpmyadmin/ and i try to connect db using bellow PDO code .but it does

Login credentials of Ubuntu Cloud server image

半世苍凉 提交于 2019-11-27 14:35:17
问题 I am trying to build a cloud infrastructure using VM's In the Openstack manuals, it is mentioned that the images in this link contain, Openstack pre-installed. I downloaded the trusty-server-cloudimg-amd64-disk1.img file and I loaded it using KVM. I instantiated a Virtual Machine using this image but I am not able to login (using the console) or ssh into it. I do not know the default username and password of that OS. Also (a different question), I would like to build a Cloud using the 2

Get Public URL for File - Google Cloud Storage - App Engine (Python)

核能气质少年 提交于 2019-11-27 13:57:28
问题 Is there a python equivalent to the getPublicUrl PHP method? $public_url = CloudStorageTools::getPublicUrl("gs://my_bucket/some_file.txt", true); I am storing some files using the Google Cloud Client Library for Python, and I'm trying to figure out a way of programatically getting the public URL of the files I am storing. 回答1: Please refer to https://cloud.google.com/storage/docs/reference-uris on how to build URLs. For public URLs, there are two formats: http(s)://storage.googleapis.com/

how to reserve a running amazon ec2 instance? [closed]

陌路散爱 提交于 2019-11-27 12:38:17
问题 we have a large ec2 instance running in asia pacific region.we want to reserve that particular instance.In aws management console we see an option to purchase a reserved instance but there seems to be no option to change this instance into a reserved one.Are we missing out on something 回答1: Reserved instances are a billing feature, not a technical feature. You can purchase a reserved instance and the discounted hourly rate will apply to already-running instances, without needing to do

Google Cloud Messaging in Delphi XE5?

放肆的年华 提交于 2019-11-27 12:05:48
I've got an android app that I am thinking about porting to Delphi but I can't see a way to interface with GCM. I am thinking I would possibly have to run the GCMBaseIntentService in java and interface with the delphi shared object? Alternatively, I am looking for a way to do push notifications in a Delphi Xe5 android app. You interface Java with Delphi using JNI. The JNI allows you to call in both directions: Java to Delphi or Delphi to Java. So you can extend your Delphi applications with Java classes . For implementing what you want on Android, doing it in Java will be the easier path to

Speech Recognition API

送分小仙女□ 提交于 2019-11-27 10:11:27
问题 I need to automatically transcribe some short MP3s as part of a proof of concept I am working on. I am currently looking into cloud solutions or web API services to send the MP3 as a simple HTTP request and receive a transcription back. The only free/open source solution I have found here, but the demos don't seem to work (at least not on the files I need to transcribe). I have found some enterprise solutions for call centers, but so far nothing I can simply integrate into a project. Are

Difference between cloud computing and distributed computing? [closed]

喜欢而已 提交于 2019-11-27 10:09:34
I wanted to know about the difference about cloud computing and distributed computing. I read an article about cloud computing and got a feeling that somewhere there is a relation between cloud computing and distributed computing and so wanted to ask about difference between technologies. Also if someone could point me to useful resources for cloud computing, it would be highly appreciated. Thanks In my mind what defines cloud computing is that the underlying compute resources (storage, processors, RAM, load balancers, etc) of cloud-based services and software are entirely abstracted from the