app-engine-flexible

X-Appengine-Inbound-Appid header is not added in GAE flexible environment

限于喜欢 提交于 2019-12-11 08:31:31
问题 According to https://cloud.google.com/appengine/docs/flexible/go/migrating#url_fetch ,in flexible environment we can use http lib instead of urlFetch which is supposed to add GAE related headers. My app is in flexible environment but "X-Appengine-Inbound-Appid" is not set when it makes http request. My app is in python using flask framework. To test is the right headers got set, I'm making http request to the same app (different endpoint). But the inbound request doesn't have "X-Appengine

Unable to connect to Cloud SQL from different project on App Engine flex Java

霸气de小男生 提交于 2019-12-11 08:24:04
问题 Here's the exception that's thrown: javax.servlet.ServletException: javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. I also get this message later on the stack trace: Caused by: java.lang.RuntimeException: The Google Cloud SQL API is not enabled for project [xxxxxx]. Please use the Google Developers Console to enable it: https://console.cloud

How mature is App Engine Flexible?

人盡茶涼 提交于 2019-12-11 07:32:44
问题 Do you know if there's a more or less certain date for the GA (General Availability) of App Engine Flexible? What would be the worst-case-scenario of driving our production on App Engine Flexible right now? What kind of failures are more likely than others? 回答1: NEXT 2017 update (source): App engine flexible is now GA for Node.js, Ruby, Java 8, Python 2.7 or 3.5, and Go 1.8. PHP 5.6/7.0/7.1 and ASP.NET are released but are in beta. You can also bring your own environment with a docker file

Can I update only app.yaml file without uploading all project

两盒软妹~` 提交于 2019-12-11 06:45:30
问题 Is there a way to update selected files when using the App Engine Flexible env? I'm facing an issue whenever I do a small change in the app.yaml file: to test it I would need to deploy the whole application which takes ~5mins. Is there a way to update only the config file? OR is there a way to test these files locally. Thanks! 回答1: The safe/blanket answer would be no as the flex env docker image would need to be updated regardless of how tiny the changes are, see How can I speed up Rails

GAE - replacement for vm:true flag on app.yaml

折月煮酒 提交于 2019-12-11 06:37:15
问题 I've been using the standard environment setting vm:true on my app.yaml I know that this flag is now deprecated and I won't be able to use it in the future... I also know that Flexible Environment is currently in Beta, so my question is, will env:flex be the replacement for vm:true ? If so will it be stable by then? Thanks 回答1: In general Beta products come with no SLA and this is highlighted on App Engine Flexible Environment: This is a Beta release of the App Engine flexible environment. It

Docker in Google App Engine Flexible health check has wrong URL

旧时模样 提交于 2019-12-11 06:11:10
问题 My service uses a url like this: <google_url>/v1/lookup_stuff <google_url>/v1/ is the base url for everything in the service, so when the health check pings <google_url> it gets a 404. I need to update to ping <google_url>/v1/ (Possibly useful information, the service is in Docker, and is accessible when I manually go to the right URL) How do I point gcloud's health service at the correct URL for my service? Ok for clarity: Google url: service-something.appspot.com All urls for service are

How to restrict public access to google app engine flexible environment?

故事扮演 提交于 2019-12-10 19:21:17
问题 I have many microservices in app engine only for internal use. But, by default, app engine opens service-project.appspot.com domain to public, and anyone can access them via http or https . Is there a way to restrict access only for certain IP address? The trivial way i can think of is checking source IP address in application code. Or, I can create custom docker image with nginx configuration which checks source ip address. But, these are not quite clean solutions because access control is

Google Appengine: Budget and Daily Spending Limit not Working

余生长醉 提交于 2019-12-10 15:58:18
问题 I am using flexible environment. I setup a billing account and set the following: Budget: 0.01$ Daily Spending Limit: 0.01$ But I am already being charged 5$. How is that possible? This is the line which tells me where the charges are comming from: App Engine Flex Instance Core Hours 5,769 Minutes $5.06 App Engine Flex Instance RAM 96.15 GB-hour $0.68 Google Compute Storage PD Capacity 1.43 GB-month $0.06 This is what my budget looks like Specified amount This billing account 50% $7.25 / $0

Why does App Engine Flexible Enviroment not allow WebSockets and HTTP/2 traffic?

♀尐吖头ヾ 提交于 2019-12-10 12:14:45
问题 I'm more interested in WebSocket, but after reading documentation here, I was surprised when I read that: The following features are not supported by App Engine flexible environment: HTTP/2 traffic to the backend service, Websockets , HTTP requests that directly access instances I was planning to build an app with gorilla-websocket, but now that I've read this, I don't know how I could accomplish it. I understand WebSocket is not get supported in App Engine Standard Environment, but why not

How do I register API environment for Datastore in GAE Flexible Environment?

纵然是瞬间 提交于 2019-12-08 09:50:44
问题 When trying to run Datastore in a Servlet in Google App Engine Flexible Environment I get "No API environment is registered for this thread." (Details below.) I see questions on StackOverflow about this happening in local machines or unit tests, but this is happening in GAE in a regular Servlet. Here is the entirety of my Datastore code, a simple query. Do I need to register an API environment? If so, how? List<String> kinds = new ArrayList<String>(); DatastoreService datastore =