终止的ACI不会消失(Terminated ACI not disappearing)
我正在处理一个新的容器映像,它运行我的工作进程以排空Azure队列。 一旦队列为空,我的应用程序退出,我希望ACI取消分配并被删除。 我所看到的是ACI棒。 它处于“已终止”状态,重启次数为0,正如我所料(在Azure门户中看到),但为什么不完全从ACI列表中删除/删除?
我使用Azure cli创建这些实例,并指定restart never选项。 这是我的命令行(减去图像特定的细节):
az container create --cpu 4 --memory 14 --restart-policy never --os-type windows --location eastus
我当然也想知道结算何时停止。 一旦我看到终止状态,我希望结算已经停止。 虽然目前尚不清楚。 我当然可以手动删除ACI,它会立即消失,如果退出应用程序也一样吗?
I'm working on a new container image that runs my worker process to drain an Azure queue. Once the queue is empty my app exits and I'd like the ACI to de-allocate and be removed as well. What I am seeing is the ACI stick around. It is in a "Terminated" state with a restart count of 0 as I would expect (seen in Azure Portal), but why is it not removed/deleted from the ACI list entirely?
I am using the Azure cli to create these instances and am specifying the restart never option. Here is my command line (minus the image specific details):
az container create --cpu 4 --memory 14 --restart-policy never --os-type windows --location eastus
I am of course also wondering where billing stops. Once I see the terminated state I am hoping that billing has stopped. Though this is unclear. I can of course manually delete the ACI and it is gone immediately, should exiting the app do the same?
原文:https://stackoverflow.com/questions/50010572
相关问答
更多-
OpenGL中的着色器(以及Vulkan / D3D) 不能有指针。 您可以做的最多是为其他一些数据结构提供索引。 所以你可以使x成为其他数组的索引。 虽然目前尚不清楚为什么它需要成为一个指针。 Shaders in OpenGL (and Vulkan/D3D for that matter) cannot have pointers. The most you can do is provide an index into some other data structure. So you could ...
-
您用于传输交错数据的方法是正确的(即,使用glVertexAttribPointer ,但最后两个参数不正确)。 倒数第二个是stride (对于结构中的每个项目都是相同的,应该是结构的大小),最后一个是offset ,对于每个元素应该是不同的(因为它们在不同的偏移量中)结构本身)。 此外,最好不要在此处使用常量,而是使用sizeof()运算符,使代码尽可能与平台无关。 这是它应该是什么样子: glVertexAttribPointer( 0, 3, GL_FLOAT, GL_FALSE, size ...
-
雷托科拉迪得到了答案! 在编译着色器以正确绑定它时,您需要事先调用glBindAttribLocation。 现在都在工作! 另外,在主持人问我之前,我不能接受他的回答作为正确的答案,因为这是对我原来的问题的评论。 Reto Koradi had the answer! You need to call glBindAttribLocation beforehand when compiling the shader to bind it correctly. It's all working now! A ...
-
如何将int数组传递给Android OpenGl片段着色器(How to pass int array into Android OpenGl fragment shader)[2021-12-14]
在着色器代码中使用所谓静态数组的正确方法是将其作为Uniform传递: http://www.opengl.org/wiki/GLAPI/glUniform 在你的着色器代码中,你需要一个外部数组: uniform int colors[3]; // Specify an array of 3 integers 在你的java代码中使用这个: int array[3] = {0, 1, 2}; int location = GLES20.glGetUniformLocation(program_id, " ... -
将顶点着色器中的浮点数组传递给glsl 3.3中的片段着色器(Passing array of floats from vertex shader to fragment shader in glsl 3.3)[2022-09-03]
OpenGL 3.3至少需要16个顶点属性位置。 顶点属性限制(由GLSL定义): const int gl_MaxVertexAttribs = 16; // Minimum: 16 Vertex Attribute Slots 顶点属性限制(在OpenGL中查询): GLuint max_vtx_attribs; glGetIntegerv (GL_MAX_VERTEX_ATTRIBS, &max_vtx_attribs); AMD是我所知道的唯一提供超过16个属性的供应商(它们在某些驱动程序/硬件 ... -
您可以使用2DArray类型来执行此操作。 Properties { _TheTextureArray ("Tex", 2DArray) = "" {} } 您可以在此处找到有关它的更多信息: https : //docs.unity3d.com/Manual/SL-TextureArrays.html 请注意技术限制(例如,DX11 / 12),因此默认情况下它不适用于所有环境,当然不适用于Web(当前)。 You can use the 2DArray type which will allo ...
-
我只是学习如何使用计算着色器,所以我不是专家。 关于你的骨骼计算,我确信CS应该至少和VS一样快。 Intuition告诉我, numthreads (64,1,1)的效率低于numthreads (16,16,1) 。 所以你可以尝试这种方法: 将线性缓冲区视为具有二次布局,x和y大小相同 将x / y-size计算为size = ceil (sqrt (numvertices)) 在程序中使用dispat ch(size / 16, size / 16) ,在hlsl文件中使用numthreads (1 ...
-
最后,我使用我的旧方法,如我的帖子 Finally I use my old method like my post
-
Cg就是这样做的,它就是这样。 HLSL / D3D11确实通过CBUFFERS的概念改进了这一点 。 你最终能够做的是在你的C ++代码中创建一个C风格的结构,它反映着色器中的所有参数,并将所有参数一次性刷新到gpu,而不必通过愚蠢的变量名来实现: C ++代码: struct GPUCDATA { // the concatenated modelview-projection matrix float modelViewProj[16] ; // column major float d ...
-
这里的问题是glVertexAttribPointer确实指定了浮点数据,因此您必须在着色器中将它们作为float / vec访问。 该函数的normalized参数只是指定它,结果浮点数将被归一化为[0,1]或直接转换。 从理论上讲,你可以像使用非标准化的uint一样使用,只需在着色器中使用in float color - 但是你会失去精确度。 如果要直接将整数值传递给着色器,则必须使用glVertexAttribIPointer ,它最初是在EXT_gpu_shader4扩展中引入的,并且是自版本3以来 ...