投稿時間:2021-05-19 00:40:23 RSSフィード2021-05-19 00:00 分まとめ(49件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… 韓国で「AirPods Pro」が発火する事故が報告される https://taisy0.com/2021/05/18/140626.html airpodspro 2021-05-18 14:00:09
AWS AWS Architecture Blog Field Notes: Monitor Your Couchbase Performance and Logs with Amazon CloudWatch https://aws.amazon.com/blogs/architecture/field-notes-monitor-your-couchbase-performance-and-logs-with-amazon-cloudwatch/ Field Notes Monitor Your Couchbase Performance and Logs with Amazon CloudWatchCloud architects leverage AWS compute services to run customer managed workloads like Couchbase clusters While customer managed workloads may come with their own monitoring metrics and dashboards customers miss the same level of deep integration with Amazon CloudWatch that the AWS managed services provide In this post we show you how to achieve higher levels of observability … 2021-05-18 14:20:45
AWS lambdaタグが付けられた新着投稿 - Qiita PostmanでJSONをPOSTし、DynamoDBに格納するノウハウメモ https://qiita.com/kumach/items/377dcf7e51d54f101b9e アクションからdatastoreapiのリソースを作成し、POSTのメゾットを作成しました。 2021-05-18 23:04:28
python Pythonタグが付けられた新着投稿 - Qiita python+gnuplotでマンデルブロ集合(その2) https://qiita.com/iHdkz/items/bbe8d0dbf202ca0359a8 マンデルブロ集合を生成するクラスとしてMandelbrotを定義して、生成されたマンデルブロ集合をcolumnssaves関数と同じように使用するためにPyGnuplotモジュールに結合させてgpcolssとして使用でtmpdatに出力、gnuplotで描写している。 2021-05-18 23:57:43
python Pythonタグが付けられた新着投稿 - Qiita Python markdownで社内手順書htmlをメモ帳から作成 https://qiita.com/Qlitre/items/af295c14732e9c55d232 この辺はセンスにもよるのでしょうが、Excelで手順書を作った結果、言葉にできない「ダサさ」というものが滲み出てしまいました。 2021-05-18 23:14:17
python Pythonタグが付けられた新着投稿 - Qiita pythonインストール後:cmdからMicrosoftストアが開く https://qiita.com/jyodajyoda/items/c8c58e0d0449f61ba51d microsoft 2021-05-18 23:08:51
js JavaScriptタグが付けられた新着投稿 - Qiita JavaScript初心者のためのTypeScript入門 https://qiita.com/riya81/items/fbe6419a8577456f478a 2021-05-18 23:52:07
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) python 辞書化 https://teratail.com/questions/339062?rss=all python辞書化pythonで以下のような文字列を辞書化して値を取り出すソースコードをご教示頂きたいです。 2021-05-18 23:59:59
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Pandas dfのfor文内部におけるスライスと関数の引数使用でのエラー https://teratail.com/questions/339061?rss=all Pandasdfのfor文内部におけるスライスと関数の引数使用でのエラーPandasnbspdfの欠損の補完を検討しています。 2021-05-18 23:59:09
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) microbitで方角によって矢印を表示したい https://teratail.com/questions/339060?rss=all 発生している問題・エラーメッセージ学校の課題でmicrobitとMuを使用して演習しているのですが、画像のようなプログラムを送信してもmicrobitでエラーのメッセージが表示され、うまく作動してくれません。 2021-05-18 23:55:26
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) it活用でのデータ一元管理について質問お願いします。 https://teratail.com/questions/339059?rss=all it活用でのデータ一元管理について質問お願いします。 2021-05-18 23:52:15
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 文字列を比較して任意の単語が含まれているかを検出するプログラム https://teratail.com/questions/339058?rss=all 文字列を比較して任意の単語が含まれているかを検出するプログラムC言語で、文章と英単語を入力し大文字小文字を区別せず英単語が文章中に含まれていればその旨を表示するプログラムを作成しなさい、という課題に取り組んでいます。 2021-05-18 23:42:43
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) yolov5の学習時に「CUDA out of memory」とエラー表示される https://teratail.com/questions/339057?rss=all yolovの学習時に「CUDAoutofmemory」とエラー表示される前提・実現したいことyolovを用いて物体検出をしたい。 2021-05-18 23:36:32
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) wc -lを実装したいです https://teratail.com/questions/339056?rss=all 2021-05-18 23:29:52
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) vueを立ち上げると開発者モードでsrc以下の内容が見える https://teratail.com/questions/339055?rss=all vueを立ち上げると開発者モードでsrc以下の内容が見えるvueをnbsplocalのyarnnbsprunnbspserverで立ち上げ、chromeのデベロッパーツールを見るとbdbaaafdabaabepng画像のようにnbspsrc配下が見えてしまいます。 2021-05-18 23:25:49
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) LaravelクエリビルダーのSELECT句でエイリアスを使用したサブクエリの書き方 https://teratail.com/questions/339054?rss=all LaravelクエリビルダーのSELECT句でエイリアスを使用したサブクエリの書き方以下のMySQLをLaravelのクエリビルダーを使用した場合、どう書くのか詳しい方教えてください。 2021-05-18 23:15:54
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) GASで外部からWebAppにPOSTされて、doPostが動いた時のログが見れません。 https://teratail.com/questions/339053?rss=all ただ、この二つの機能を連動させて動かすときにGASが受け取ったPOSTの内容を確認したいのですが、外部からのPOSTに対するログが表示されません。 2021-05-18 23:03:14
Ruby Rubyタグが付けられた新着投稿 - Qiita 【rails】総計いいね数表示の実装 https://qiita.com/tani__san929/items/ee4e2427e88887ef3ec0 questionここでは質問コメント機能実装済みanswerここでは回答いいね機能実装済みquesitonlikeanswerlikeここでは高評価いいねは、投稿とコメントの両方に出来るようにしてあります。 2021-05-18 23:49:09
Ruby Rubyタグが付けられた新着投稿 - Qiita Rubyとは https://qiita.com/li2003038/items/7516ec72d08531be3a20 Rubyにおいては、ブロック付きメソッドなどを活用してRubyであると同時にDSLでもあるような言語を定義できる。 2021-05-18 23:11:32
AWS AWSタグが付けられた新着投稿 - Qiita AWS Fault Injection Simulator で始めるカオスエンジニアリング入門 https://qiita.com/dsonoda/items/9d05e7397639b6cbec60 実験内容起動しているECのLinuxインスタンスを、リソースID指定によってFISの実験で停止させることができるか検証。 2021-05-18 23:57:37
AWS AWSタグが付けられた新着投稿 - Qiita CDKでFargateにEFSをマウントする https://qiita.com/sakai-y/items/5a80e4dbd4db41b28599 この記事でもCDKの正規の機能として対応されていないから、ということで、カスタムリソースでカスタムタスク定義を登録するようになっています。 2021-05-18 23:18:59
AWS AWSタグが付けられた新着投稿 - Qiita 【LINE LIFF&MessagingAPI、AWS、PayPay】テーブルオーダーアプリ(ハンズオン参加) https://qiita.com/ishikawaryou/items/91f934a7832e3188ecb1 どんなプログラムもここに配置する事で実行可能との事です。 2021-05-18 23:03:55
Ruby Railsタグが付けられた新着投稿 - Qiita 【rails】総計いいね数表示の実装 https://qiita.com/tani__san929/items/ee4e2427e88887ef3ec0 questionここでは質問コメント機能実装済みanswerここでは回答いいね機能実装済みquesitonlikeanswerlikeここでは高評価いいねは、投稿とコメントの両方に出来るようにしてあります。 2021-05-18 23:49:09
海外TECH DEV Community 16 VS Code Shortcuts for Faster Coding https://dev.to/basecampxd/16-vs-code-shortcuts-for-faster-coding-4k5a VS Code Shortcuts for Faster Coding IntroductionMicrosoft s VS code is one of the most popular text code editors available on the internet VS Code is an IDE Integrated Development Environment We can make it more powerful by using the extensions and it s very easy to customize It comes with emmet pre built which no other text editor does and it also allows us to tweak into its code so we can even modify its environment variables according to our preferences It has a large collection of extensions which you can use for your requirement Today we are going to look into shortcuts of VS code that will help you to code more effectively Keyboard Shortcuts Command PaletteKeyboard Shortcut Ctrl Shift PAccess all available commands based on your current context All of the commands are in the Command Palette with the associated key binding if it exists If you forget a keyboard shortcut use the Command Palette to help you out Quick OpenKeyboard Shortcut Ctrl PQuickly open files Errors and warningsKeyboard Shortcut Ctrl Shift MQuickly jump to errors and warnings in the project Change language modeKeyboard Shortcut Ctrl K MPersist the new language mode for that file type Change your themeKeyboard Shortcut Ctrl K Ctrl TYou can install more themes from the VS Code extension Marketplace Toggle SidebarKeyboard Shortcut Ctrl BShow and hide the status bar Zen modKeyboard Shortcut Ctrl K ZEnter distraction free Zen mode Side by side editingKeyboard Shortcut Ctrl You can also drag and drop editors to create new editor groups and move editors between groups All SelectionKeyboard Shortcut Ctrl Shift LYou can add additional cursors to all occurrences of the current selection Next SelectionKeyboard Shortcut Ctrl DThis only selects the next occurrence after the one you selected so you can add selections one by one Copy line up downKeyboard Shortcut Shift Alt Up or Shift Alt DownCopy the whole line and paste it into the line above or below Move line up and downKeyboard Shortcut Alt Up or Alt DownMove the whole line above and below as required Code formattingCurrently selected source code Ctrl K Ctrl FWhole document format Shift Alt FFormat your untidy code to clean your code for more readability Open Markdown previewKeyboard Shortcut Ctrl Shift VSee Markdown preview for markdown file Side by side Markdown edit and previewKeyboard Shortcut Ctrl K VThe preview and editor will synchronize with your scrolling in either view IntelliSenseKeyboard Shortcut Ctrl SpaceYou can view available methods parameter hints short documentation etc Connect with me Currently on Twitter I am posting about How to write and grow blog If you want to write a more effective blog with tips consider the follow button on Twitter With this completing tweets Thank you to everyone As helping more people I am going to tweet about writing and growing blog especially technical in the coming days So if you haven t followed me please consider ーSuraj Vishwakarma surajondev May Twitter GitHub Last NoteI hope this post will help you write code effectively Thank you for reading the post 2021-05-18 14:46:26
海外TECH DEV Community How to create currency converter in javascript https://dev.to/stackfindover/how-to-create-currency-converter-in-javascript-3h26 How to create currency converter in javascriptHello guys In this tutorial we will try to solve the mentioned query and also we will learn how to create a currency converter in JavaScript Common QueryHow to make a currency converterHow to use frankfurter free APIHow to create API based application What is Currency Converter A currency converter is a software that is designed to convert a currency into another to check its corresponding value They do so by connecting to a database of current currency exchange value Click here to Know more Currency Converter Using JavaScript Step By Step GuideTo make a currency converter in javascript we use frankfurter API this is an open source simple and lightweight API for current and historical foreign exchange forex rates published by the European Central Bank Read more about frankfurter APIFirst we need to create two files index html and style css then we need to do code for it Step Add below code inside index html lt DOCTYPE html gt lt html lang en gt lt head gt lt meta charset UTF gt lt title gt How to create currency converter lt title gt lt meta name viewport content width device width initial scale gt lt meta http equiv X UA Compatible content ie edge gt lt link rel stylesheet href style css gt lt link href Plex Sans amp display swap rel stylesheet gt lt link rel stylesheet href gt lt script src gt lt script gt lt head gt lt body gt lt div class currency row outer gt lt div class currency converter gt lt h gt Currency Converter lt h gt lt div class field grid gt lt div class colmun col left gt lt input type number class form input id number placeholder gt lt div gt lt div class colmun col right gt lt div class select gt lt select name currency class currency onchange updatevalue gt lt select gt lt div gt lt div gt lt div gt lt div class field grid gt lt div class colmun col left gt lt input type text class form input id output placeholder disabled gt lt div gt lt div class colmun col right gt lt div class select gt lt select name currency class currency onchange updatevalue gt lt select gt lt div gt lt div gt lt div gt lt div gt lt div gt lt script gt const select document querySelectorAll currency const number document getElementById number const output document getElementById output fetch then data gt data json then data gt display data function display data const entries Object entries data for var i i lt entries length i select innerHTML lt option value entries i gt entries i entries i lt option gt select innerHTML lt option value entries i gt entries i entries i lt option gt function updatevalue let currency select value let currency select value let value number value if currency currency convert currency currency value else alert Choose Diffrent Currency function convert currency currency value const host api frankfurter app fetch https host latest amount value amp from currency amp to currency then val gt val json then val gt console log Object values val rates output value Object values val rates lt script gt lt body gt lt html gt Step Then we need to add code for style css which code I provide in the below screen Start Currency Converter padding margin font family IBM Plex Sans sans serif body height vh width vw overflow x hidden currency row outer display flex align items center justify content center height currency converter width max width px text align center input select color font size rem height em border radius px max width width calc px margin auto outline background fff border color dbdbdb padding left px border px solid box shadow inset em em rgb webkit appearance none field grid display grid grid template columns fr fr grid gap px currency converter colmun margin bottom px select currency border color dc width height cursor pointer font size em max width outline display block currency converter select position relative height h padding bottom px currency converter select after transform rotate deg transform origin center content border px solid rgba border radius px border top border right display block height em width em z index position absolute top right em margin top em select not hover after border color dc select hover after border color Currency converter in javascript video output You may like this alsoShortcut Keys of Computer A to ZHow to publish a website for free 2021-05-18 14:42:06
海外TECH DEV Community Evolution of API and Microservice ecosystem: part 1 https://dev.to/hypertrace/evolution-of-api-and-microservice-ecosystem-part-1-399a Evolution of API and Microservice ecosystem part In this first installment in a series on the evolution of API and microservices ecosystem we will learn about how microservices and APIs became industry standards and what are different benefits microservices offer We will explore different challenges with this ecosystem and how to solve them in the second part of this series Most of the tech giants including companies like Amazon Netflix started to build their systems using a monolithic architecture because back in the time it was much faster to set up a monolith and get the business moving But over time as the product matures or fat growth happens with growing systems the code gets more and more complicated They all faced this problem and looked at microservices as a solution One of the biggest benefits of microservices is that each microservice can be developed scaled and deployed independently You can replace or upgrade any part of the system without affecting the whole system But what is microservice architecture As called out by James Lewis and Martin Fowler The term Microservice Architecture has sprung up over the last few years to describe a particular way of designing software applications as suites of independently deployable services While there is no precise definition of this architectural style there are certain common characteristics around organization around business capability automated deployment intelligence in the endpoints and decentralized control of languages and data I hope it s not that hard to guess but these microservices talk to each other via APIs and two of the most commonly used protocols are HTTP request response with resource APIs and lightweight messaging Although as I mentioned above companies like Netflix and Amazon have been using microservices for quite a long time many small organizations have also started adopting API first or microservice driven architectures recently because APIs have become the heart of the global tech industry in the past decade Rise of MicroservicesLet s dive more into the origins of APIs and Microservices as they share a common origin story Rise of service oriented architecturesRise of cloud computing and managed servicesRise of decentralization movementRise of Agile movement Rise of service oriented architecturesAs we all know building distributed systems is hard and managing them is even harder The rise of the web back in the days opened the doors to innovate the way we build distributed systems and that s where Service based architecture came into the picture SOA was defined as a style of multi tier computing that helps organizations share logic and data among multiple applications and usage modes as defined by Gartner Though a failed movement back in the time SOA surely helped a lot in initiating microservice movements and even organizations like Netflix and Amazon were calling their architectures SOAs before the microservice movement Due to the centralized nature of ESB topology and some other reasons SOAs increased complexity and introduced bottlenecks and the costs of implementing an SOA infrastructure based on the ESB registry and service platform template were excessive Due to these problems people started looking for better alternatives Rise of cloud computing and managed servicesThe rise of RESTful Web APIs arose as a lighter weight alternative to SOAP services a style of interconnecting applications that had evolved organically on the Web The distributed nature of cloud infrastructure challenged the placement of the centralized ESB topology Everyone started adopting microservices due to the benefits they provided and here we are today looking at complex modern architectures Cloud computing helped in removing barriers for deployment and provided a variety of new use cases for APIs It worked out as a novel platform for deploying more granular API fronted application components Cloud services provided another reason to move towards more service oriented and modular deployment architectures Rise of decentralization momentAs we discussed earlier at one point in time service oriented computing became an increasingly popular paradigm for modeling and building distributed systems in open and heterogeneous environments However proposed service oriented architectures are typically based on centralized components such as service registries or service brokers that introduce reliability management and performance issues During this whole time the capabilities and scale of distributed systems have increased The trend towards decentralization in both the system itself as well as the supporting organization started to catch up and the decentralization moment started Rise of Agile momentIn his blog post titled “Coding the Architecture Simon Brown pointed out that agile architecture does not naturally emerge from agile development practices Rather it must be consciously sought Note that his description of agile software architecture is a perfect match for microservice architecture If we look at the characteristics of agile software architecture we tend to think of something that is built using a collection of small loosely coupled components services that collaborate together to satisfy an end goal This style of architecture provides agility in a number of ways Small loosely coupled components services can be built modified and tested in isolation or even ripped out and replaced depending on how requirements change This style of architecture also lends itself well to a very flexible and adaptable deployment model since new components services can be added and scaled if needed The agile software movement arose as a reaction to the same centralized approach to enterprise IT that hampered the SOA movement Agile s popularity and success in software development led to the CI CD approach to software deployment followed by the cultural philosophy of the DevOps movement Between CI CD DevOps agile development and progressive delivery the software delivery train also started speeding up Benefits of MicroservicesNow that we have gone through the reasons behind the rise of Microservices Let s try to understand what business value microservices provide The main reason that drives the move to microservices in any organization is speed and agility at scale which helps in software delivery Reducing cross team coordination building diverse language applications flexible deployments enhanced manageability are some of the additional perks that organizations with microservice architectures enjoy Many of the benefits which come with Microservice architectures are mostly due to the API first nature of microservices and here are a few of them Composability When services are published through an API it is easier to use them in multiple business contexts to assist in various business processesTestability When services are accessible over a network boundary it is easier to isolate tests and exercise individual components of the systemScalability Each microservice can be scaled autonomously without disrupting the other microservices that comprise the application When demand increases you only need to upgrade or divert more resources to the microservice affected by the increasing demands Evolvability When services are exposed through an API implementation details can be hidden from the consumer making it easier to change components without impacting dependent parts of the system Comprehensibility When a complex system is broken down into modular APIs it is easier to understand the overall business functionality of the system which helps in both designing and maintaining the systemAutomatability Along with the data plane API benefits above control plane APIs allow automation in the deployment and management of microservices thus increasing the velocity of software deliveryBut as we know with great power comes great responsibility and the same thing applies to microservices and API ecosystems as well These complex systems bring a lot of challenges with them and we will discuss those challenges in the next part of this blog post Until then if your organization is using microservice architecture and exploring Observability solutions feel free to check out our Open Source Observability platform Hypertrace If you are in transition and want to learn more about Observability or want to contribute to Hypertrace join our slack community to interact with folks who have been through this transition or going through this transition References 2021-05-18 14:30:04
海外TECH DEV Community Writing my first C# MVC Unit Test https://dev.to/sbrevolution5/writing-my-first-c-mvc-unit-test-13ah Writing my first C MVC Unit TestAfter much research and thought I m diving in today with a very basic C unit test just to get my feet wet with Test Driven Development The purpose of this test is to see if the home index will return blogs It should be very simple and I honestly rarely expect this test to break but you ve got to start somewhere The setup I ve Installed the xUnit extension into VS and I m adding a new xUnit Test Project to my solution Since this is for my blog project I ll name it BlogTests and put it in my project folder This creates a sample test with nothing in it at the moment but we will fix that shortly Auto generated Tests One of the great things about VS is that it can generate a test for you This test doesn t do anything but it gives us a starting point Over in the main project s home controller if we right click inside the index action you can right click inside the overall class to make more than one test at once if needed and go to Create Unit tests we get a lovely pop up that gives us some options If its not already selected make sure the Test Framework is xUnit net then select your test project and lt New Test File gt before you hit OK I m having it assert failure for all tests right now since there isn t anything going on just yet Mocking the databaseWith EFCore we actually don t have to make a Mock database we will instead use the local database for testing It was rather difficult to get the Mock database working with EFCore and in my research it turned out to be unnecessary Writing the test itselfOnce we have our Mock Database we are ready to write the test Lets use a more descriptive name than Index Test There are parts considered standard to a test name The behavior being testedThe constraintsThe expected behaviorI m going to use Index ReturnsAViewResult WithAPagedListOfFiveBlogs as the name Its a mouthful but if my test fails I will immediately know what failed There are now parts to our test Arrange Act and Assert ArrangeThis step involves putting the data in the correct spot and performing any setup var optionsBuilder new DbContextOptionsBuilder lt ApplicationDbContext gt optionsBuilder UseNpgsql Connection GetConnectionString configuration var dbContext new ApplicationDbContext optionsBuilder Options var controller new HomeController null dbContext The optionsBuilder is used to configure options for the ApplicationDbContext which then is passed to the controller I did not pass the controller a logger at this point since I am not using the logger to test Your options builder should take the same arguments that are used in startup cs to set up your database Act This part is very simple just get a result from the controllervar result await controller Index passing page I m passing a variable because my site is using X PagedList to paginate see this post AssertAnd here s the meat and potatoes We re going to check that the type is ViewResult and the model is based on an IPagedList Then finally we ensure that the model only includes items for this page var viewResult Assert IsType lt ViewResult gt result var model Assert IsAssignableFrom lt IPagedList lt Blog gt gt viewResult Model Assert Equal actual model Count To run a test we use a series of assert statements If any of these fail we will recieve a failure on a test This is where we re going to stop for now but as a first experiment in testing I d call this a success My main struggle at the moment is coming up with the right kind of tests Unlike working with a very math based console app I don t feel like I have much to test within the controllers What kinds of tests do you do with MVC apps 2021-05-18 14:29:12
海外TECH DEV Community Keep your AWS Kubernetes costs in check with intelligent allocation https://dev.to/castai/keep-your-aws-kubernetes-costs-in-check-with-intelligent-allocation-2l8l Keep your AWS Kubernetes costs in check with intelligent allocationTraditional cost allocation and Kubernetes are like oil and water Surely containerized environments make a lot of things easier But not this one Luckily there are a few things you can do to allocate AWS Kubernetes costs smarter and keep them in check Read on to find out what they are and finally hold the reins over your cloud expenses What you ll find inside You re not the only one getting confused by Kubernetes costs here s whyCalculating shared costs is a nightmareContainers are very dynamicDealing with multiple cost centers is hardAutoscaling leads to more confusionAllocating AWS Kubernetes costs the smart wayUse container classesBreak costs down for labeling and taggingEstablish labeling and namespace standardsSplit and allocate shared costsCount in cluster costs beyond the coreHow to apply all of this and win the cost allocation game You re not the only one getting confused by Kubernetes costs here s whyGetting the hang of Kubernetes cost estimation allocation and reporting is something every team mindful of its expenses aspires to But why is it so hard Here are Kubernetes cost challenges we all know all too well Calculating shared costs is a nightmareKubernetes clusters are in essence shared services multiple teams run to hold multiple containers and apps Once a team deploys a container it uses some of the cluster s resources so you need to pay for each and every server instance that is part of your cluster This doesn t sound so hard until you try making that work with say three teams working on ten unique applications Which application or project uses the biggest chunk of your cluster resources You can t really tell because all of these projects use multiple containers Knowing how many resources an individual container uses from a specific server is next to impossible And that s what makes allocating Kubernetes costs so challenging Containers are very dynamicA container s lifespan lasts only one day Compare that to how long your virtual machine lasts It s a speck in time The dynamic character of your containerized environment makes calculating costs even more complex You need to come up with a cost management system that can handle it Dealing with multiple cost centers is hardIt s likely that not all development costs come from the DevOps budget and you have a number of cost centers running across your company While your product team develops core applications another team might launch a shadow IT project that consumes resources You need to consider this especially if your business has multiple digital services and each comes with its own teams and budgets When multiple teams use one cluster identifying which one is responsible for which part of the bill is a hard nut to crack Autoscaling leads to more confusionTeams often use the three built in Kubernetes autoscaling mechanisms that reduce the waste and cost of running clusters But autoscaling has an impact on your cost calculations For example Vertical Pod Autoscaler VPA automatically adjusts requests and limits configuration to eliminate overhead It changes the number of requests on a container increasing and reducing its resource allocation Horizontal Pod Autoscaler HPA focuses on scaling out to get the best combo of CPU or RAM allocated to an instance It changes the number of containers all the time Why does it matter Here s an example scenario Imagine that you have three webserver containers running during the night Everything works well But there are some peak hours during the day so HPA scales from to containers When lunchtime comes and demand is lower it scales down And then it brings the scale back up for the afternoon rush only to settle at a low level as the day ends The number of containers and their sizes is very dynamic in this setup This complicates the process of calculating and forecasting AWS Kubernetes costs even more Allocating AWS Kubernetes costs the smart wayTake a look at your cloud bill You get charged for every instance that makes up a cluster where containers are deployed You need to pay for that resource even if you re not using it To allocate the individual costs of a container running on a given cluster you need to discover how much of the server the container ended up consuming And then add the satellite AWS Kubernetes costs of a running cluster to that as well from management nodes and software licensing to backups and disaster recovery How to do it Here are some best practices for allocating Kubernetes costs Use container classesYou can set different resource guarantees on scheduled containers in Kubernetes They re called Quality of Service QoS classes Here s a quick introduction GuaranteedThese pods are top priority and guaranteed to not get killed until the moment they exceed their limits If limits and requests not equal to are set for all the resources across your containers and are equal the pod is classified as guaranteed Use this for critical service containers to make sure that a pod gets the vCPU and memory it needs at all times Burstable If your workload experiences spikes it should have access to more resources when it needs them This setup allows the pod to use more resources than requested at first as long as the capacity is available on the underlying instance This type of allocation works like burstable instances AWS offers T series they give you a base level of performance and allow the pod to burst when it requires more This is much more cost effective than investing in an instance large enough to cover the spikes but way too large for regular operation BestEffortThese pods are the lowest priority and get killed first if your system runs out of memory This allocation allows the pod to run while there s excess capacity available and stops it when it s not It works like spot instances in AWS It s a good idea to allocate a mix of pods that have different resource allocation guarantees into a server instance to increase its utilization For example you can allocate a baseline of resources to guaranteed resource pods add some burstable pods that use up to the remainder of resources and best effort pods that take advantage of any spare capacity Break costs down for labeling and taggingBreaking costs into separate categories helps to make sense of them through labels and tagging Here are a few categories that Kubernetes teams find useful Billing hierarchy develop and align it with your cloud costs for example projects folders or organizations Resources this part covers compute cores GPU TPU RAM load balancers custom machines network egress etc Namespaces it s a good practice to label specific and isolated containers Labels come up with labels reflecting different cost centers teams application names environments etc Establish labeling and namespace standardsDevelop and implement a labeling and namespace strategy and stick to it when allocating cluster costs That way teams that use AWS can see which groups are driving costs in a given cluster Consider the proportional resources consumed by every group and use your findings to allocate cluster costs to these groups Here s an example Let s say that you have four namespaces in a cluster Each of them consumes of the cluster resources One way to allocate costs would be taking of the total cluster costs and allocating them to each namespace Naturally this is an example scenario don t expect things to be so straightforward in the real world Before setting out to do that establish how you ll be determining cluster resource utilization by CPU memory or a combination of these two Are you going to look at requests or actual consumption If you go for actual usage each team will only pay for what it uses But who will be covering the bill for idle time How are you going to deal with overprovisioning If you allocate costs by resource requests you ll encourage teams to provision only what they need and allocate all the costs But this might also lead teams to underestimate their requirements Split and allocate shared costsCompanies have unique ways to split infrastructure costs These methods often get inherited when they start using Kubernetes Here s a set of best practices if you re looking for another approach a Define what shared costs areThis depends on the maturity and size of your company You share the cloud bill at the organizational level but need to allocate it either to a centralized budget or different cost centers Still your shared costs will be charged within one account so understanding which AWS Kubernetes costs should be shared is challenging Here are a few examples of commonly shared costs Shared resources network storage like data lakes Platform services Kubernetes logging Enterprise level support and discountsLicensing and third party costs Take support charges as an example They re applied at the parent account level While some businesses cover them with a central budget of the IT or cloud team others go a step further and allocate this cost to customers like application owners or business units The rise of shared platforms where multiple teams use the same core resources complicates this like Kubernetes systems that run on shared clusters b Split your shared costsTagging helps to do that accurately and you can choose from several techniques Proportional split based on the relative percentage of direct costsEven split where you split the total amount evenly across all targetsFixed proportion split based on a user defined coefficient This is a bit abstract so let s show an example Imagine that you have several business units that consume a different portion of cloud resources You get a k enterprise support charge on top of that so your final bill is k per month Here s how this plays out in different splitting techniques Proportional splitIn this model you split the k enterprise support charge among your three business units based on the percentage of their spend in direct charges So the sales operations team that uses of your bill will also be accountable for k on top of their bill Even splitThis model is simpler so you can often find it among smaller companies with fewer business units In this scenario the k enterprise support charge is shared evenly by all business units so k each Fixed proportion splitWhen using this method you set a fixed percentage for attributing shared costs based on past spend The idea is to get a fair breakdown So if you decide that the sales operations team s shared cost allocation is then it will get k of the enterprise support fee allocated to it Count in cluster costs beyond the coreWhen allocating costs to cluster consumers consider the satellite costs of operating this cluster like Management and operational costs these are charged by AWS for managing the cluster for you For example EKS charges per hour per Kubernetes cluster this amounts to c per month Learn more here AWS EKS vs ECS vs Fargate Where to manage your Kubernetes Storage add the costs of storage consumed by the host OS on the nodes and any backup or data retrieval storage that is used in operating a production cluster can be allocated back to the workloads running on the cluster Licensing these costs might be included in your AWS bill but if you use Bring Your Own License BOYL you need to allocate this cost from the external spend Moreover software packages running on the host OS might incur a license fee too Observability these metrics and logs are transferred from the cluster to a service your teams use to monitor and visualize them This cost might be incurred by AWS or a third party SaaS solution Security AWS offers a wealth of security features but they come at an extra fee that needs to be allocated How to apply all of this and win the cost allocation gameImplementing all of these best practices at once is bound to overwhelm you So start small and develop a process for allocating costs Build an understanding of how these costs should be allocated in your company Or get a solution that keeps your AWS Kubernetes costs at bay Analyzing and allocating costs is so much easier if you have access to a detailed overview like this Here s how to get started Analyze your cluster for free to see every single detail that increases your AWS bill 2021-05-18 14:25:24
海外TECH DEV Community I created 3 New VSCode Themes! https://dev.to/code2rithik/i-created-3-new-vscode-themes-39ji I created New VSCode Themes Hey There This is an exciting post because Drumroll please Well you obviously know by the title Anyways I created New and free VSCode themes to make your VSCode look better A month ago I wrote a post on Rad themes for VSCode You can check it out here Rad Themes for Visual Studio Code Rithik Samanthula・Apr ・ min read vscode theme color aesthetic Anyways are you ready to install it It s on the marketplace Neon Blue DriveAn Awesome Neon Blue Theme Inspired by The Best ThemeInstall Blazes AbyssThis is a theme based on the CodeSandbox ThemeInstall Purple StarThis is a nice purple theme with a radical themeInstallPlease do write reviews on the marketplace Thank You for Reading and Remember Keep Coding Y All ‍ 2021-05-18 14:21:16
海外TECH DEV Community Why you should have a code of conduct on GitHub https://dev.to/ashfreels/why-you-should-have-a-code-of-conduct-on-github-41ob Why you should have a code of conduct on GitHubI made the decision to add a code of conduct to my current and future repos on GitHub Based on my personal experiences I made my choice when I asked these questions What is the purpose of a code of conduct How can I prevent negative behavior in the future What enforcement will take place for rule violations The purpose of writing this article is to advocate creating a safe space and a welcoming environment in the open source community As developers we should respect one another and this includes contributing to open source projects A few bad apples make it bad for everyoneAny good open source project will have a detailed README md and a CONTRIBUTING md in the repo It is important to create a positive environment for contributors However negative and toxic behavior can push contributors away from a project Git commits and documentation are not for harassmentCommits and proper documentation are used to document changes in a project The purpose is not to bully or harass individuals who made a mistake This can deter contributors to contribute for another project Examples of a toxic open source environment was calling out people s first name in the commits putting down contributors taking credit and not acknowledging the work of others I have been on the receiving end and the outcome was not pretty A code of conduct is neededIf you want multiple contributors to your open source project having clear guidelines for contributors is essential Adding a code of conduct on my part was to make my projects welcome to anyone who wants to contribute You can choose to adopt a code of conduct that reflects your community standards Final thoughtsCode of Conducts are meant to create an inclusive environment Having one creates boundaries for open source projects and makes sure everyone follows the guidelines when contributing Encouraging participation in the community and creating a harassment free environment makes contributors feel welcome I would welcome any contributions to a project ResourcesAdding a code of conduct in GitHubYour Code of ConductExample of Code of Conduct 2021-05-18 14:03:48
Apple AppleInsider - Frontpage News BlackBerry publishes method to virtualize ARM64 version of macOS https://appleinsider.com/articles/21/05/18/blackberry-publishes-method-to-virtualize-arm64-version-of-macos?utm_medium=rss BlackBerry publishes method to virtualize ARM version of macOSBlackBerry s cybersecurity team has shared a new report that details how to emulate an ARM macOS kernel on Intel chips for Apple Silicon security research Credit AppleThe report penned by the BlackBerry Research Intelligence Team offers a method for security researchers and penetration testers to successfully emulate a macOS ARM kernel using the QEMU open source machine emulator Read more 2021-05-18 15:00:01
Apple AppleInsider - Frontpage News Spotify 'HiFi' audio control, error messages uncovered by user https://appleinsider.com/articles/21/05/18/spotify-hifi-audio-control-error-messages-uncovered-by-user?utm_medium=rss Spotify x HiFi x audio control error messages uncovered by userA user has found and been able to use a new HiFi button in the Spotify app ahead of the music streaming company s launch of lossless audio SpotifyMonths before Apple announced that Apple Music would move to lossless audio tracks Spotify revealed it would be offering higher quality audio too The company said only that it would launch during but a new finding suggests the launch may be imminent Read more 2021-05-18 14:29:01
Apple AppleInsider - Frontpage News TwelveSouth announces new ActionSleeve 2 band for Apple Watch https://appleinsider.com/articles/21/05/18/twelvesouth-announces-new-actionsleeve-2-band-for-apple-watch?utm_medium=rss TwelveSouth announces new ActionSleeve band for Apple WatchThe new band moves your Apple Watch from your wrist to your arm allowing you greater range of movement at the gym and protecting your device from nicks and dings TwelveSouth has a new Apple Watch band for fitness fanatics and gym gurus alike giving you more options to comfortably wear your Apple Watch while working out The new ActionSleeve is designed to be worn on the bicep or forearm allowing for a greater range of motion at the wrist This is particularly useful for those lifting weights doing pushups or playing sports that require dexterity Read more 2021-05-18 14:03:44
Apple AppleInsider - Frontpage News Redesigned Mac Pro with up to 40 Apple Silicon cores coming in 2022 https://appleinsider.com/articles/21/05/18/redesigned-mac-pro-with-up-to-40-apple-silicon-cores-coming-in-2022?utm_medium=rss Redesigned Mac Pro with up to Apple Silicon cores coming in Apple is reportedly readying a new Mac Pro desktop that could include a new faster Apple Silicon chip with up to processing cores and graphics cores for launch in Credit Jon ProsserThe Cupertino company is preparing to launch updated inch and inch MacBook Pro models with Apple Silicon chips as soon as the summer Alongside those portable professional notebooks Apple is also preparing to launch new desktop models in Read more 2021-05-18 14:36:23
Apple AppleInsider - Frontpage News New 14-inch and 16-inch Apple Silicon MacBook Pro, redesigned Mac mini in pipeline https://appleinsider.com/articles/21/05/18/new-14-inch-and-16-inch-apple-silicon-macbook-pro-redesigned-mac-mini-in-pipeline?utm_medium=rss New inch and inch Apple Silicon MacBook Pro redesigned Mac mini in pipelineA new report claims that Apple will launch multiple new Macs including redesigned Mac mini MacBook Air and MacBook Pro lines starting in the summer Apple SiliconApple has previously committed to moving all of its Macs to Apple Silicon within two years but now that transition is said to include redesigns of even the existing new M Macs A new report claims that the MacBook Pro models will see a revamp in summer while the successor to the M will be in a redesigned MacBook Air to come at the end of the year Read more 2021-05-18 14:12:33
Apple AppleInsider - Frontpage News AirPods Max won't support Apple Music lossless over Lightning, HomePod also left out https://appleinsider.com/articles/21/05/17/airpods-max-wont-support-apple-music-lossless-over-lightning-homepod-also-left-out?utm_medium=rss AirPods Max won x t support Apple Music lossless over Lightning HomePod also left outApple s top of the line AirPods Max won t support Apple Music lossless audio over wireless or wired connections while the company s HomePod and HomePod mini won t support the new audio format at all Credit Andrew O Hara AppleInsiderThe Cupertino tech giant on Monday announced new audio formats for Apple Music including Spatial Audio powered by Dolby Atmos and higher resolution lossless audio streaming However there are a number of Apple products that won t be able to take advantage of the latter feature Read more 2021-05-18 14:04:24
海外TECH Engadget Volocopter shows off its vision for a commuter drone taxi https://www.engadget.com/volocopter-voloconnect-commuter-drone-taxi-concept-142708511.html commuter 2021-05-18 14:27:08
海外TECH Engadget 'Grand Theft Auto V' comes to PS5 and Xbox Series X/S on November 11th https://www.engadget.com/gta-v-ps5-xbox-series-x-release-date-142203171.html november 2021-05-18 14:22:03
Cisco Cisco Blog History of Pluggable Optics Continued: Cisco Optics Podcast Episode 4 Notes https://blogs.cisco.com/sp/history-of-pluggable-optics-continued-cisco-optics-podcast-episode-4-notes History of Pluggable Optics Continued Cisco Optics Podcast Episode NotesJoin us for Episode of the Cisco Optics Podcast where we discuss the history of pluggable optics in a conversation with Ray Nering an engineering product manager in the Cisco Optics product management group 2021-05-18 14:01:51
海外TECH CodeProject Latest Articles React-Native FileManager Component with Firebase Storage https://www.codeproject.com/Tips/5302941/React-Native-FileManager-Component-with-Firebase-S storage 2021-05-18 14:34:00
海外科学 NYT > Science Pipeline Hack Points to Growing Cybersecurity Risk for Energy System https://www.nytimes.com/2021/05/13/climate/pipeline-ransomware-hack-energy-grid.html Pipeline Hack Points to Growing Cybersecurity Risk for Energy SystemEnergy infrastructure has increasingly come under assault and analysts said the attack that cut off fuel supplies this week should be a “wake up call 2021-05-18 14:08:18
金融 金融庁ホームページ 証券監督者国際機構(IOSCO)が、サステナビリティ報告に係るステークホルダーの見解をまとめたプレス・リリースについて掲載しました。 https://www.fsa.go.jp/inter/ios/20210518/20210518.html iosco 2021-05-18 15:38:00
金融 金融庁ホームページ 「金融サービス利用者相談室」における相談等の受付状況等(期間:令和3年1月1日~同年3月31日)について公表しました。 https://www.fsa.go.jp/soudan/2021soudan01-03/2021_01-03.html 金融サービス 2021-05-18 15:00:00
ニュース BBC News - Home Covid-19: Too soon to decide on roadmap changes, PM says https://www.bbc.co.uk/news/uk-57159286 indian 2021-05-18 14:48:01
ニュース BBC News - Home Usyk possible 'plan B' for Joshua after Fury setback https://www.bbc.co.uk/sport/boxing/57160833 oleksandr 2021-05-18 14:31:42
ニュース BBC News - Home Man Utd legends Cantona & Keane inducted to Hall of Fame https://www.bbc.co.uk/sport/football/57157310 cantona 2021-05-18 14:20:55
北海道 北海道新聞 俳優の田村正和さん死去 77歳、「古畑任三郎」などに出演 https://www.hokkaido-np.co.jp/article/545320/ 古畑任三郎 2021-05-18 23:15:35
北海道 北海道新聞 岸田氏、二階幹事長らに苦言 1・5億円使途説明を https://www.hokkaido-np.co.jp/article/545373/ 岸田文雄 2021-05-18 23:09:00
仮想通貨 BITPRESS(ビットプレス) Bitgate、5/18より暗号資産現物取引サービスにて「ETH/JPY(イーサリアム/円)」の取扱開始 https://bitpress.jp/count2/3_10_12500 bitgate 2021-05-18 23:38:03

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)