首页 \ 问答 \ 集群管理和服务发现(Cluster management and service discovery)

集群管理和服务发现(Cluster management and service discovery)

我想介绍一下我部署的服务发现/集群管理解决方案。 就我看来,Mesos是一种解决方案,但是我担心在安装马拉松,cronos,mesos等代理时,它在内存方面会消耗多少; 我的盒子最多只有512MB的RAM。 在资源较少的盒子上安装Mesos是可行的吗? Consul是Mesos的替代品吗?


I want to introduce on my deploys a service discovery / cluster management solution. As far as I see Mesos is one solution, but I'm worried about how much it consumes in terms of RAM when installing agents of marathon, cronos, mesos, etc; my boxes have at most 512mb of RAM. It is feasible to install Mesos on boxes with low resources? It is Consul a replacement for Mesos?


原文:https://stackoverflow.com/questions/24659836
更新时间:2024-02-07 13:02

最满意答案

所以答案很简单。 我真的需要将我的lib复制到系统映像到system / lib文件夹,因为make命令不会将它从out / target / product / generic / system / lib复制到system.img

诀窍是添加这一行

  PRODUCT_COPY_FILES += $(LOCAL_PATH)/my_lib.so:system/lib/my_lib.so

到full.mk文件。 它的位置是:android-source / build / target / product也把my_lib.so放在它附近(如路径所示)

如果您计划在实际设备上运行映像,请在设备名称定义后添加此行。 f.ex. 如果您在Nexus 4上运行,请将其放在android-source / device / lge / mako / full_mako.mk


So the answer was quite simple. I really need to copy my lib to the system image, to the system/lib folder, because the make command doesn't copy it from out/target/product/generic/system/lib to system.img

the trick is to add this line

  PRODUCT_COPY_FILES += $(LOCAL_PATH)/my_lib.so:system/lib/my_lib.so

to full.mk file. it's location is: android-source/build/target/product also put the my_lib.so near it (as seen by the path)

if you are planning to run the image on a real device, add this line after the device name definition. f.ex. if you are running on Nexus 4, put it at android-source/device/lge/mako/full_mako.mk

相关问答

更多
  • 好。 我解决了我的问题。 问题是除了我所做的所有事情之外,bootanimation.zip文件必须使用存储方法进行压缩。 Ok. I've solved my problem. The issue was that besides all the things I've done, the bootanimation.zip file MUST be compressed with store method.
  • 正如克里斯指出的那样,这是由于“滑稽”的引用而被偷偷摸摸的。 As Chris pointed out it was due to "funny" quote which got sneaked in.
  • 对于Android开源项目,您可以看到此链接https://source.android.com/source/downloading.html 对于Access在线资源,您可以在http://androidxref.com/上看到此链接,非常适合探索ASOP。 我是嵌入式android开发人员。 你可以在stackoverflow上问我任何与ASOP相关的问题。 For Android open source project you can see this link https://source.and ...
  • 系统映像filesytem修改您可以在此文件中更改: system/core/include/private/android_filesystem_config.h 尝试在那里更改权限。 如果你有问题,请在这里发帖。 System image filesytem modifications you can change in this file: system/core/include/private/android_filesystem_config.h Try to change permissio ...
  • 我找到了解决权限问题的方法。 首先,将日志文件写入/ data / misc / audioserver 然后: adb shell su root cp /data/misc/audioserver/log_before.pcm sdcard/. 等等。 然后我可以拉文件: adb pull /sdcard/log_before.pcm . I found a way around the permission issue. First, write the log file to /data/mis ...
  • 您会发现大部分或全部更改都属于某些分支机构。 对我来说,我为Nexus 9开发了roms,所以我的很多变化都在设备/ htc / flounder之下。 公共分支是frameworks / base /,我也做了很多改动。 为此,我有两个单独的git存储库存储这些: https : //github.com/seanashmore/frameworks_base https://github.com/seanashmore/device_htc_flounder 为了创建这些,我创建了一个github帐户。 ...
  • 所以答案很简单。 我真的需要将我的lib复制到系统映像到system / lib文件夹,因为make命令不会将它从out / target / product / generic / system / lib复制到system.img 诀窍是添加这一行 PRODUCT_COPY_FILES += $(LOCAL_PATH)/my_lib.so:system/lib/my_lib.so 到full.mk文件。 它的位置是:android-source / build / target / product ...
  • 看起来您的更改是特定于设备的,而不是与框架相关的。 在这种情况下,您可能希望将文件包含在aosp / device / ... / model /中 您可以查看从samsung tuna查看设备makefile的方法: https : //android.googlesource.com/device/samsung/tuna/+/master/device.mk PRODUCT_COPY_FILES变量包含“origin_file:destination_file” PRODUCT_COPY_FILES ...
  • 我通过谷歌页面将供应商二进制文件部署到android源代码树中来修复我的情况 这很简单,您下载zip文件并在源树根目录中运行它们。 他们附加了嵌入在构建系统的最终img文件中的附加软件。 在这需要大约2分钟后重建,因为所有android构建系统都重新打包imgs。 So finally, got the problem. Actually I pulled the android4.4.2_r2 branch and was using google's preview binaries. Then I p ...
  • 所以我找到了一个在构建时将应用程序设置为默认的解决方案。 我正在记录它,希望它可以帮助其他人。 Android系统在位于/data/system/users/{*user-id*}/package-restrictions.xml的文件中的块中保留默认应用程序/活动的列表,称为 此文件由Settings.java和PackageManager.java在构建时生成。 只要android系统上的默认值发生变化,这个xml ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。